Resting on the backs of others – PHP5 & OSX
A few months ago I tried to start working with PHP5 on OSX. Followed the directions I was able find on Google (which were none too assuring as most of them ended with “so that didn’t work, anyone have any advice”) and gave up after several hours of mucking around.
Approximately an hour ago I downloaded the php5 source code, built it and installed it. Well, I shouldn’t take any credit, basically I followed the directions here exactly (I helped that I’d recently done a complete upgrade of Fink, so I had libxml2).
I cleaned up my httpd.conf file so that it wasn’t trying to run both PHP4 and PHP5 (’cause it can’t… at least not without some horrible hackery), and ran phpinfo(). It worked, I was running PHP5. PHPMyAdmin still worked, but Tasks doesn’t yet support PHP5. It’s a measure of how much I’ve been using Tasks recently that I then spent 20 minutes figuring out (googling actually) how to run PHP4 and PHP5 simultaneously. Again, it’s a simple as following the directions at How to run PHP4 and PHP5 prallel (sic).
Now I’ve got two running instances of Apache, one listening to port 80 and one to 8080. I really like it when things just work!
Edited on 8:48pm – Corrected the two mistakes relating to Tasks, namely the link was wrong and I meant PHP5, not PHP4 (which didn’t make much sense in context). One of the rare times when I got distracted mid-post and failed to re-read.