If you read my last entry, you’ll know that Mac OSX comes with Apache2. It also comes with PHP, but Apache2 isn’t configured to enable it. Here’s the short and simple howto for enabling PHP on it.
Open the httpd.conf located at /private/etc/apache2/httpd.conf.
Uncomment the following line (by removing the #):
#LoadModule php5_module libexec/apache2/libphp5.so
For a more in-depth howto, go here: http://foundationphp.com/tutorials/php_leopard.php