Just after Leopard was released I wrote about my findings with PHP5 on Leopard here – which had the conclusion that PHP on Leopard is more or less useless due to the fact that there are so many missing modules.

I used to use Entropy PHP on Tiger but I could not get it to work, well I am quite happy to say that with a bit of reading on the forums at www.entropy.ch I have been able to get Entropy PHP to work on Leopard.

In short which have to happen to get it working:

– snip –
cd /usr/sbin
mv httpd httpd.ub
lipo -info httpd.ub
lipo -thin i386 httpd.ub -output httpd.i386
lipo -info httpd.i386
ln -s httpd.i386 httpd
cd /etc/apache2/other
ln -s /usr/local/php5/entropy-php.conf .

locate libexpat
# in my case I found a libexpat in /opt/local/lib, from macports. Your mileage may vary. I also did a symlink from php ib to apache2 so everything would be in the same place
ln -s /usr/local/php5 /usr/local/apache2
cd /usr/local/apache2/lib
ln -s /opt/local/lib/libexpat.1.5.2.dylib .
ln -s /opt/local/lib/libexpat.0.dylib .
– snip –

And as far as I understand it will not work on 64bit Macs, which means that if you have a G5 or a Core 2 Duo then you will have to forget about until Johan from Entropy builds a PHP5 which will work on 64bit. Right now I’m happy that I actually did not have the money to go out and get a new Mac with a Core 2 Duo….

Technorati Tags: , ,
Tagged with:
 

One Response to (followup) Leopard Annoyances I – Apache/PHP

  1. [...] wrote here about my happiness with Leopard (Apple OSX 10.5) and the implementation of PHP which they have put [...]

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security text shown in the picture. Click here to regenerate some new text.
Click to hear an audio file of the anti-spam word

Set your Twitter account name in your settings to use the TwitterBar Section.