apache

“Can’t connect to local MySQL server through socket” on Mac OS X Leopard

I keep having to do this and I'm writing this here so that I remember how to fix it:

PHP is trying to connect through /tmp/mysql.sock by the /etc/my.cnf file is pointing to /var/mysql/mysql.sock.

So I just put a symlink in tmp to redirect the connection:
ln -s /var/mysql/mysql.sock /tmp/mysql.sock

Apache in 32 bit vs. 64 bit mode and Zend Debugger on Mac OS X

While trying to do some ahah uploading for a 5.x Drupal module I'm porting to core 6.x, I discovered some problems with my local 32-bit apache setup on my Mac OS 10.5 development machine.