Friday, November 7, 2008 Tutorial

The Mac OS X operating system comes with several key components of an open-source server already installed. Mac OS X (10.4) came with the open-source Apache (1.X), MySQL (version 4.1.14) and PHP (4.X) already installed. They just need to be configured and activated.

The problem with enabling the built-in open-source environment on Mac OS X is that it is not up-to-date, and inevitably one updates a module (say php 5 instead of the default php4 for example), or installs other custom open-source software, only to find on the next Mac OS X Important Securituy Update that the environment has been compromised - either downgraded, obliterated or otherwise fatally modified.

Fortunately there are solutions. The first of these to be offered was the Fink environment, which installs a complete DAMP (Darwin/Apache/MySQL/PHP after LAMP for Linux) environment in its own root directory (/sw/). Apple promises to leave this directory alone with all system software updates, and Fink promises to keep that directory up to date. The drawback with Fink is that it has very few packages available, and the user tends to find a need to either create a package of their own, or install from source code - not a welcome idea when there are so many excellent DAMP packages out there.

The solution preferred and promoted by this website is MacPorts. Apple very wisely based Mac OS X on FreeBSD, which has its own Ports package management system claiming some 17,576 packages available. MacPorts is the migration of FreeBSD Ports to Mac OS X. You will find (nearly) all the packages you need are available, and installation and maintenance of a comprehensive up-to-date DAMP environment is now feasible. is a comprehensive tutorial that guides you through the installation of MacPorts, and its use to install and configure the open-source packages that change the Mac into an industrial-strength open-source server. Included are MacPorts installation and configuration tutorials for any or all of the following open-source components:
... you can use just the applications you want or install the whole open-source plethora.  Also included within is information on how to implement Porticus - a must-have tool for MacPorts users wanting to remain within the Mac OS X graphical user interface.