The purpose of this document is to provide instructions on how to update the version of PHP included with OS X 10.4.x Tiger Server. DO NOT USE this document to update PHP on 10.5.x Leopard Server. An separate tutorial is available. It will guide you through updating to the latest version of PHP4 without breaking Server Admin functionality. Furthermore you will be shown how to update to the latest version of PHP5, while retaining most of Server Admin’s functionality.

Although the Apple included version of PHP4 is suitable for most users, there are situations where one might need to update. A common reason is to include support for the GD2 libraries. This document will require you to use the command line. If you do not feel comfortable with using the command line, you should look for a ready made installer package.

Why should I use the command line if there are ready made installer packages available? Short answer: Greater flexibility. Long answer: The packages available, reflect the creators’ views on what should or shouldn’t be included in the package. By understanding how to install things yourself, you can choose what to include in your PHP build.

This document is written for Mac OS X 10.4.x. However, it should apply to 10.3.x as well. Be aware though that I have not done any particular testing of this procedure on 10.3.x. DISCLAIMER: Whatever you do based on this document, you do it at your own risk! Just in case you haven’t understood: Whatever you do based on this document, you do it at your own risk! This tutorial has been tested on a standard Mac OS X 10.4.x Server. If you have already tinkered with your system, be aware that things might differ. It is impossible for me to foresee all changes that one might have applied to a server.

Download pdf Updating PHP on Mac OS X Server 10.4.x