Obtain Liyanage’s PHP5 module with built-in GD (etc.) support:
- curl -O http://www2.entropy.ch/download/php5-5.2.5-6-beta.tar.gz
- tar xvfz php5-5.2.5-6-beta.tar.gz
- sudo mv php5 /usr/local/
- sudo chown -R root:admin /usr/local/php5
Edit /etc/apache2/httpd.conf to ignore the Apple-installed module and load the new Liyanage module:
# LoadModule php5_module libexec/apache2/libphp5.so
LoadModule php5_module /usr/local/php5/libphp5.so