This is a PHP module for the Apache web server included in Mac OS X.
PHP is a server-side, cross-platform, HTML embedded scripting language.
1. Download the PHP package here: http://www2.entropy.ch/download/entropy-php-5.2.4-1-apache2.tar.gz
2. Install it, then test it at http://127.0.0.1/~your_username/test.php
Thanks to Marc Liyanage for the PHP package.
If you’re using OS X’s built in Apache2 server it comes with PHP5 compiled as a module, although it’s not enabled by default.
To enable PHP on the OS X web-server open the file /etc/apache2/httpd.conf and find the line:
#LoadModule php5_module libexec/apache2/libphp5.so
Uncomment this line (remove the preceding hash), save it, then restart the internal Web Server (from System Preferences->Sharing then un-check and recheck the Web Sharing box).
These steps are relevant for Leopard only, Tiger uses Apache 1 and PHP4, but is still a good dev environment.