To run Apple's Apache binary as a 32-bit process on a 64-bit Intel Mac, you can take one of two approaches:
- Strip all but the i386 arch from the binary.
- Modify the OS scripts to launch Apache using the
Since the first is destructive and the second is not, the second option is recommended.
To modify the Apache launch commands, make the following changes:
/usr/sbin/apachectland change the value of the HTTPD variable as follows:
/System/Library/LaunchDaemons/org.apache.httpd.plistand change the
<array>element below the
ProgramArgumentskey as follows:
To verify that your change worked, start Apache and run
ps -el | grep httpd. The "F" column should contain numbers that do NOT end in 4.