Tutorial: Install Apache 2.0 on Tiger, part 1 of 2
Mac OS X's Darwin foundation means that many of the services longtime Unix users have come to know work just like we would expect, and the Apache web server is no exception. But OS X 10.4 comes installed with Apache 1.3.33, and Apache 2.0 has been out for quite a long time now.
Fortunately, if you need to upgrade, it's quite easy, and in fact you have two options. For a basic install of Apache 2.0.52, you can use a third party installer and you won't even have to touch the terminal. It comes with only a minimal set of modules, however, so if you need extras (like php or fastcgi), or if you want the very latest version (right now, it's 2.0.54), your best bet is to build from source -- but don't worry, that's almost as easy if you're not afraid to open up the terminal app.
In this mini-tutorial I'm going to show you how to install Apache using an installer from Server Logistics. In part 2, we'll build Apache from source, and you can choose which suits your needs. Either one will allow you to continue using Apache 1.3.33 on your Mac if you want, though you can't use them simultaneously.
Technorati Tags: apache, mac, osx, tutorial
So before you begin, you'll want to make sure Personal Web Sharing is disabled (System Preferences -> Sharing). This controls Apache 1.3, and if it's running, it will conflict with Apache 2.0 and prevent it from starting.
First, download the "Complete Apache 2.0.52 (10.3)" package from Server Logistics -- it was developed for OS X 10.3, but it also worked fine on 10.4 for me.
Unpack the downloaded gzip file (I used Stuffit Expander) & mount the disk image. Then all you have to do is run Apache2.pkg. Once you're done, that's it! You have Apache 2.0.52 installed in /Library/Apache2/, and it should also be running.
Go to http://localhost to test. If it works, great! If you still see your old web server, Apache 1.3 is still running and prevented Apache 2 from starting. Disable Personal Web Sharing as described above. You can attempt to restart it using the new Apache 2 preference pane:
Drag Apache2.prefPane to the "Macintosh HD/Library/PreferencePanes" folder. Go back to your System Preferences and you'll see a new "Apache2" item in the "Other" section (you may have to quit and restart System Preferences if it was already running). You can control your new Apache 2 server from here. Your new server root (where you put the HTML files) is at /Library/Apache2/htdocs/, and the Apache configuration file is at /Library/Apache2/conf/httpd.conf.
Part 2 will guide you through installing Apache 2 from source. Be sure to leave a comment if this was helpful, or if you're having trouble! Enjoy!
by frank on Jul 16, 05 09:58 AM
Trackback Pings
TrackBack URL for this entry:
http://www.macpot.com/cgi-local/mt/mt-tb.cgi/77

