Building PHP on Mac OS X?

Solution 1:

Use MacPorts as they have packaged together most of the settings in a way much easier to understand. For example:

port install php5-mysql