Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

IntellEJent

macrumors member
Original poster
Oct 30, 2006
38
0
I really enjoy web programming, but I have not been able to find a decent package of Apache for the macintosh computer. I will be running PHP 5.2 and MySQL as soon as I can figure out how to install a decent version of apache on this computer. If anyone has any enlightenment on how to set up a good web-dev environment on the Macintosh operating system, I would really appreciate it. Thanks! :)
IntellEJent
 
My own experience, having hunted about a good bit, was it was easier to download the source from Apache and build it myself (you need to have the Developer Tools installed, but once you do it's actually suprisingly straightforward). I used the latest 2 build (2.0.5.9). I imagine the same goes for 2.3, and particularly if you're on an Intel Mac.

Do NOT use the Complete Apache package if you're running Tiger - 2.0.5.4 is not compatible with Tiger (as I discovered last weekend :p ) - it works fine with Panther tho.
 
It's been a while since I actually installed the full platform on one of my machines, but I either googled for a package or found a link from apache friends. Might have been MAMP, I dunno.

As for needing Tiger, it's not completely true.

I have a G4 iMac that has apache, mysql, php, python, perl, and some other web goodies on it. It runs just fine. Of course it's for local testing only, but I also use this particular machine for web and email too. ;)
 
I'm a little confused as to what you mean by "a decent build" of apache 2... I was under the belief that apache 2 was apache 2... I run a few linux boxes with apache 2 and my apple server doesn't run 2 yet, is there something I should be looking out for? I heard a ton of people talk bad about PHP5, yet I haven't run into anything funky with it yet, as a matter of fact I listened to a netcast with the creator of PHP and he promoted 5... any inputs on that?

DD
 
Apache is Apache, but builds can be different, depending on the system they were compiled for (eg Intel or PPC), the version of Apache, where it will reside on the server, and the optional modules you choose to add in when you build it (eg SSL, Proxy, PHP). There seems to be a dearth of decent Mac builds for Apache 2 at the moment, particularly for the Intel Macs.

Ive had no problem with PHP5, but some have - the entropy build of PHP5 for example, which is very nice, was initially done for Apache 1.3 (the one that comes with OSX) and so wouldn't work properly with Apache 2. I believe he has a newer build out that supports it now.

From memory Apache 2.0.5.9 builds a module for PHP4 by default, so if you want to use PHP5 you have to have a build that supplies the libphp5.so module for Apache to use to access it (and comment out the php4 library in the conf file)

The MAMP build lets you choose PHP4 or 5 to use, and it works well, but it's a development platform, not something you'd use in a production environment.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.