5.23.2008

PHP and Leopard Server : mach-o, but wrong architecture

May 22 19:33:34 amanyus org.apache.httpd[96895]: httpd: Syntax error on line 143 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
May 22 19:33:34 amanyus com.apple.launchd[1] (org.apache.httpd[96895]): Exited with exit code: 1
May 22 19:33:34 amanyus com.apple.launchd[1] (org.apache.httpd): Throttling respawn: Will start in 10 seconds


Insert installation disc. Open up terminal.

$ cd /Volumes/Mac\ OS\ X\ Server\ Install\ Disc/System/Installation/Packages/
$ open .


Run Essentials.pkg and install it to an empty filesystem or empty folder. the libphp.so will be inside [install_dir]/usr/libexec/apache2 directory.

1 comment:

Anonymous said...

This really helped me out! Thanks a lot.