Installed:
Entropy PHP 5.3.03.pkg
I have been trying to enable php on my mac. But everytime I point the browser to my test.php all I get is the source code being displayed:
I put my test.php in the following location:
user/admin/sites
And I browse to in using the following url:
http://localhost/~admin/test.php
and all I see is this:
<?php phpinfo(); ?>
I have done the following:
cp /etc/php.ini.default /etc/php.ini
chmod 666 /etc/php.ini
I have enabled web sharing in system preferences | web sharing
I have also uncommented the line in /etc/apache2/httpd.conf
#LoadModule php5_module libexec/apache2/libphp5.so
I have restarted apache
apachectl restart
However, I always end up with the source code being displayed.
Many thanks for any suggestions,
I can’t answer your particular problem directly, but if you continue to have issues, may I suggest easy alternative? Install MAMP. Works like a charm with very little setup. Website here: http://www.mamp.info/en/index.html