Here are some simple steps to solve these problems :
Install and configure PHP:
By default PHP and Apache2 are installed on Leopard and the only thing is to enable php module for apache and run the server
1. Open /etc/apache2/httpd.conf and find the line:
#LoadModule php5_module libexec/apache2/libphp5.so
Uncomment it ( remove # ) and save the file.
2. Go to System Preferences -> Sharing and check 'Web Sharing'
3. You can place your php files in your /username/Sites directory and view it at 127.0.0.1/~username where username is your account name.
1. Go to http://dev.mysql.com.../mysql/5.0.html and download the package for Leopard :
2. Install the packeges and MySQL.prefPane
3. Go to System Preferences -> MySQL and start the server
4. The last thing to do is to to chnage one line in your php.ini file:
mysql.default_socket = /tmp/mysql.sock
Congratulations. You have PHP/MySQL ready to use OS
Author : Mitko Kostov
Notice : During some of the steps root access is required. Tested on 10.5.2 and 10.5.3.
This post has been edited by MitkOK: 17 June 2008 - 09:08 AM