(followup) Leopard Annoyances I – Apache/PHP

Written on 13. November, 2007 – 4:28 pm | by casper |

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: , ,

Related Posts

Put your related posts code here
  1. 1 Trackback(s)

  2. Feb 12, 2008: Casper’s Life » Blog Archive » (followup II) Leopard Annoyances I - Apache/PHP

Post a Comment

*
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