More joy of tech - Grin with cat attached
Previous Entry Next Entry
More joy of tech Nov. 10th, 2007 11:11 pm
Apparently migrating Tiger / OSX 10.4 to Leopard involves:

Upgrading Apache to 2.2, and PHP to 5.2.4

Changing apache's expected location for its config files from /etc/httpd/ to /etc/apache2, and so disabling all custom configuration.

Disabling PHP by default.

Locking down access to 'deny from all' by default.

Breaking MySQL's prefs pane. There *is* no MySQL package for 10.5 though, so start it by hand...

Preventing mysql from connecting on 'localhost', although works...

... except that the installed PHP 5.2.4 doesn't have MySQL PDO support ...

so it's time to build PHP from source...

... except of course gcc no longer works until you install Xcode 10.5

That installs ok, configure runs, PHP5 compiles... to an i386 .so, which won't run against apache2 which is a quad-type universal binary running as x86_64 ...

httpd: Syntax error on line 114 of /private/etc/apache2/httpd.conf: Cannot load /usr/libexec/apache2/libphp5.so into server: dlopen(/usr/libexec/apache2/libphp5.so, 10): no suitable image found. Did find:\n\t/usr/libexec/apache2/libphp5.so: mach-o, but wrong architecture

Silverbox:~ wechsler$ file `which httpd`
/usr/sbin/httpd: Mach-O universal binary with 4 architectures
/usr/sbin/httpd (for architecture ppc7400): Mach-O executable ppc
/usr/sbin/httpd (for architecture ppc64): Mach-O 64-bit executable ppc64
/usr/sbin/httpd (for architecture i386): Mach-O executable i386
/usr/sbin/httpd (for architecture x86_64): Mach-O 64-bit executable x86_64

sh-3.2# file /usr/libexec/apache2/libphp5.so
/usr/libexec/apache2/libphp5.so: Mach-O bundle i386

ETA Fukkit - rebuilt apache as i386 instead

(no subject) - vampwillow
From: wechsler
Date: November 11th, 2007 - 01:00 am (Link)
This is now the point of "sod this, I'm going to bed" while fink updates and recompiles itself and all managed packages on the lappy.
From: wechsler
Date: November 11th, 2007 - 09:51 am (Link)
I might well give that a try at some point; I've no real loyalty to fink.

Right now, however, I'm building an i386 version of apache.