Since this is the Leopard Server Forum and not the client forum, a few clarifications to avoid confusion and broken servers:
-jeffiel's method is fine for Client but not for Server
-Leopard Server DOES ship with MySQL installed, but without the MySQL client libraries
-The MySQL client libraries are available from Apple's Darwin Sources
-For Server you should use the MySQL client libraries provided by Apple
-On Server there is no need to build MySQL again, just copy the libraries and headers
Please continue any discussion inherent to Leopard Client in the Client forum. Inexperienced users risk confusion and a hosed server.
For Leopard Server there are basically 2 methods available:
1. Install just the dynamically loaded extension gd.so, see:
http://osx.topicdesk.com/content/view/135/62/
2. Install a full build of GD and recompile PHP to integrate it, see:
http://osx.topicdesk.com/content/view/133/62/
http://osx.topicdesk.com/content/view/136/62/
Both methods work. Method number 1 gives you less flexibility and will not work with CLI PHP.