I've been struggling to get PHP up and running on my Mac. I have followed all the instructions on the previous discussion on this topic (How do you get php working on Mac OS X?) and it's still not working. When trying to open a .php file it displays it as the source code and doesn't even seem to recognise it as a PHP file, but calls it TextWrangler document instead.
In my /etc/apache2/httpd.conf
file I have done the following:
LoadModule php5_module libexec/apache2/libphp5.so
DirectoryIndex
to DirectoryIndex index.php index.html index.htm
DocumentRoot
to /Users/myusername/Sites/
Directory
to <Directory "/Users/myusername/Sites/">
Still not working. Can you help?