PHP & MySQL on Leopard

Edit /etc/apache/httpd.conf and comment out

LoadModule php5_module # (on line 114)

If you installed the binary mysql5 edit/add /usr/local/mysql/my.cnf and add/change:

[client]
socket = /var/mysql/mysql.sock
[mysqld]
socket = /var/mysql/mysql.sock

then do (with sudo -s)

/bin/sh /usr/local/mysql/support-files/mysql.server stop
mkdir /var/mysql
chown -R _mysql:wheel /var/mysql/
/bin/sh /usr/local/mysql/support-files/mysql.server start

(update this also in your rails app’s database.yml)

Comments are closed.