The following instructions will help you install a PHP module for the Apache
web server included in MacOS X. This version includes support for the MySQL
and PostgreSQL databases. These instructions are graciously provided by
» Marc Liyanage.
Be careful when you do this, you could screw up your Apache web server!
Do this to install:
Open a terminal window.
wait for the download to finish.
Type gunzip libphp4.so.gz
Type sudo apxs -i -a -n php4 libphp4.so
Now type sudo open -a TextEdit /etc/httpd/httpd.conf
TextEdit will open with the web server configuration file. Locate these
two lines towards the end of the file: (Use the Find command)