How to Install Entropy PHP 5.2 on Mac OS X Leopard Server 64-bit
June 29th, 2009 by Administrator    


While setting up my own local Mac OS X Leopard server, I’ve come across this problem and I thought I would share this to people who are or going to be on the same boat as me. If you are running Apache version 1.3 or below, then you’re fine. If you are running Apache 2 then continue to read below.

Step 1

First, the reason which makes Entropy doesn’t work on Apache 2 is that Apache is 64 bit and Entropy is 32 bit. To make it work, we need to force it to run in 32 bit mode. Below is the instruction to backup you current httpd and then use the lipo command to thin out x64 codes. Type this is your Terminal app.

This will backup your current httpd, in case anything goes wrong
sudo cp /usr/sbin/httpd /usr/sbin/httpd-fat

This will strip 64 bit codes from you current httpd to force it to run in 32 bit mode
sudo lipo /usr/sbin/httpd -thin i386 -output /usr/sbin/httpd

Step 2

Now, I assumed that your Web Service is not running and php5_module is not enable in the Web -> Settings – Modules section in your Server Admin. If not do it now.

Now run the Entropy PHP installer

Step 3

After finish installing, you should have your php 5 package installed in “/usr/local/php5″.

Now open the httpd.conf file located in “/etc/apache2″. I opened it with BBEdit (great software). and serch for  this line:

LoadModule php5_module libexec/apache2/

And then replace it with this line:

LoadModule php5_module local/php5/

Step 4

You are done, now all you need is to turn on Web Service in Server Admin and there you go.

I don’t take all the credit for this. In fact it belongs to those guys on the Entropy forum.

You might also be interested in:

Share your thought:

Web design by Phong Vu - All content posted on here is copyright by Phong Vu and its rightful owner.