Snow Leopard, mysql and php

Upgrading to Snow Leopard installs a new version of php.(5.3.0)

The php.ini file, which should be at /etc/php.ini, will need to be created.
You do this by editing /etc/php.ini.default, and renaming it to php.ini.

The changes required are
1) add the correct time zone,

1
2
3
4
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone ="Australia/Sydney"

2) change the three references of the mysql.sock address from

1
/var/mysql/mysql.sock

to

1
/tmp/mysql.sock

Then restart apache by stopping and restarting
System Preferences>Sharing>Web Sharing

More detailed instructions are at
Install Apache/PHP/MySQL on Snow Leopard

Similar Posts

No comments yet. Be the first.

Leave a reply