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
Post a Comment