Unix/Mac OS X installsThis section contains notes and hints specific to installing PHP on Mac OS X Server. Using PackagesThere are a few pre-packaged and pre-compiled versions of PHP for Mac OS X. This can help in setting up a standard configuration, but if you need to have a different set of features (such as a secure server, or a different database driver), you may need to build PHP and/or your web server yourself. If you are unfamiliar with building and compiling your own software, it's worth checking whether somebody has already built a packaged version of PHP with the features you need. Compiling for OS X serverThere are two slightly different versions of Mac OS X, client and server. The following is for OS X Server.
Compiling for MacOS X clientThose tips are graciously provided by Marc Liyanage. The PHP module for the Apache web server included in Mac OS X. This version includes support for the MySQL and PostgreSQL databases. NOTE: Be careful when you do this, you could screw up your Apache web server! Do this to install:
PHP should now be up and running. You can test it by dropping a file into your Sites folder which is called test.php. Into that file, write this line: <?php phpinfo() ?>. Now open up 127.0.0.1/~your_username/test.php in your web browser. You should see a status table with information about the PHP module. | |||||||