NativeSPMacApache32
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
arch
command.
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:
- Edit
/usr/sbin/apachectl
and change the value of the HTTPD variable as follows:
HTTPD="arch -i386 /usr/sbin/httpd"
- Edit
/System/Library/LaunchDaemons/org.apache.httpd.plist
and change the<array>
element below theProgramArguments
key as follows:
<array> <string>/usr/bin/arch</string> <!-- new line --> <string>-i386</string> <!-- new line --> <string>/usr/sbin/httpd</string> <string>-D</string> <string>FOREGROUND</string> </array>
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.