osx - How do you get php working on Mac OS X? -


i have updated lion , enabled web sharing in system preferences unable php working.

i added info file web root directory , outputs file text.

info.php content <?php phpinfo(); ?> 

(edit: method appears work fine 10.9 (mavericks), 10.10 (yosemite) , 10.11 (el capitan), figured i'd mention new influx of frustrated os x updaters :d )

edit /etc/apache2/httpd.conf , make sure line:

loadmodule php5_module libexec/apache2/libphp5.so 

...exists. think it's commented out default in standard os x config, remember, need uncomment it, re-start apache:

sudo apachectl restart 

and should go.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -