Get PHP up nice and quick on osx

Posting this for myself mostly as a reminder but useful for others who may want PHP up and running in a specific directory quick on osx.

1. (First time only) Open /private/etc/apache2/httpd.conf. Uncomment the line that says
“LoadModule php5_module libexec/apache2/libphp5.so”
2. Search for DocumentRoot. Change the path in quotes to match the local folder you want to be your www folder.
3. Open system preferences->Sharing. Turn on “Web Sharing” checkbox.

Tags: , ,

Leave a Reply