Mac Software Update & PHP

Thu 2006/03/09 16:40 JST
 5
 in Mac
1612 views

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 ^^/

If you are interested in reading about life in Japan, seeing photos taken daily around Tokyo, like Japanese subculture (anime, manga, figures, Dollfies) then you may want to start delving into the Japan or Figure categories for a start or have a gander at all photo articles.

If you don't have much time now, maybe subscribe to the RSS Feed, Twitter Feed or join the other readers in the FaceBook Page.
Alternatively, you may want to read more about the site.
If you are a regular reader then this message will probably annoy you each time - hide it forever.

This item was posted in the Mac category. You can see more of everything else or subscribe via RSS instead.
日本語で表示する 日本語で表示する
-Japan Probe - News from Japan (Subscribe)
-Akihabara News – Gadgetry from Japan (Subscribe)

Currently being read