PHPNext we uncomment this line in the /etc/apache2/httpd.conf file:LoadModule php5_module libexec/apache2/libphp5.so

And then we restart Apache: sudo apachectl restart.

Next we fix a warning appearing in phpinfo():

To do this we create a /etc/php.ini file and make it writable: > cd /etc > sudo cp php.ini.default php.ini > sudo chmod 666 php.ini

Next in the php.ini file, find this line: ;date.timezone =

Uncomment this line and intert your time zone. To see what time you are in, go to this link:http://php.net/manual/en/timezones.php

ie, date.timezone = America/Eastern

Restart Apache in terminal: sudo apachectl restart

MySQL

1.Download the MySQL package for Mac OS X 10.5 (32 or 64 bits depending on your machine)2. Install everything in the package in this order: mysql, the startup item, the preference pane.3. Start MySQL in the preference pane.4. Lastly, test that mysql is working: type this in terminal, /usr/local/mysql/bin/mysql

Next we need to fix the mysql.sock location in php.ini

in /etc/php.ini, replace the three occurences of /var/mysql/mysql.sock to /tmp/mysql.sock

If this connects, then everything is ok. However, if you get an error to connect to your mysql database, then you will have to do the following:

1. /usr/local/mysql/bin/mysqladmin flush-privileges2. /usr/local/mysql/bin/mysql3. GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' IDENTIFIED BY PASSWORD 'passwd' WITH GRANT OPTION4. Quit this mysql and login to the one required with userid and password to check to see everything is ok. If not, refer to the mysql web site for possible problems.

MAMP RebuildNow we need to restore the HTML files and MySQL databases. To do this, 1. Open up /Library/WebServer/Documents Folder in your hard drive and drag all your html folders and files to this folder.2. Now power up your browser and locate run your phpMyAdmin Console as you will need to reinstall your MySQL Databases. You will have to create each database and then import or run the SQL's to restore the databases to their original state. 3. If everythng was done properly, you should have a fully rebuilt MAMP system running natively on a Snow Leopard machine without any special customization required in previous builds.