After the last Software Update ( it could have been a security update - I forget ) for my powerbook, I had problems connecting to MYSQL and couldn't perform anymore GD functions on localhost. Using phpinfo() to see what on earth was going on I saw...
PHP Version 4.4.1
System Darwin guncannons-powerbook-g4-15.local 8.5.0 Darwin Kernel Version 8.5.0: Sun Jan 22 10:38:46 PST 2006; root:xnu-792.6.61.obj~1/RELEASE_PPC Power Macintosh
Build Date Feb 7 2006 06:25:13
Configure Command '/SourceCache/apache_mod_php/apache_mod_php-18.3/php/configure' '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--with-apxs' '--with-ldap=/usr' '--with-kerberos=/usr' '--enable-cli' '--with-zlib-dir=/usr' '--enable-trans-sid' '--with-xml' '--enable-exif' '--enable-ftp' '--enable-mbstring' '--enable-mbregex' '--enable-dbx' '--enable-sockets' '--with-iodbc=/usr' '--with-curl=/usr' '--with-config-file-path=/etc' '--sysconfdir=/private/etc' '--with-mysql=/usr' '--with-mysql-sock=/var/mysql/mysql.sock'
Looks like the last Software Update updated my version of PHP - at least they could have compiled it with my original settings!
Anyway, if this happens to you and you want your old PHP version back, just follow the instructions in my
"Installing PHP GD MYSQL and Apache on Mac OS X Tiger" post and you should be OK. In in my case I was back to...
PHP Version 4.3.6
System Darwin guncannons-powerbook-g4-15.local 8.5.0 Darwin Kernel Version 8.5.0: Sun Jan 22 10:38:46 PST 2006; root:xnu-792.6.61.obj~1/RELEASE_PPC Power Macintosh
Build Date Mar 8 2006 12:08:41
Configure Command './configure' '--with-xml' '--with-zlib' '--with-gd' '--with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-apxs=/usr/sbin/apxs' '--enable-exif' '--enable-mbstring' '--with-curl=/usr'
I know my PHP version is old but everything just works as it is and I dont really need an update to mess everything up! At first I thought there was something wrong with MYSQL but I was able to connect from the terminal - the culprit was the new PHP build that included "--with-mysql-sock=/var/mysql/mysql.sock".
So now you know ^^/