Leopard ate my Apache
November 1, 2007 10:32 PM
Subscribe
Upgraded to Apache 2.2. Then I upgraded to Leopard. Suddenly Apache isn't working. What can I do to fix this?
A while back I installed Apache 2.2 on my MacBook Pro. Didn't overwrite the default 1.3 install, just renamed the old apachectl in /usr/sbin and added a new link pointing at the upgraded Apache (installed in /usr/local/apache2).
Prior to the upgrade, I didn't even think of this. Apple has been sticking with the 1.3 builds for so long that it never even crossed my mind.
After the upgrade, Apache wasn't serving pages. I did re-enable Web Sharing, but that didn't fix it. Starting Apache from terminal gave me a weird error string. Restoring the old apachectl link in /usr/sbin and then restarting Apache seems to work. Response headers say it is running 2.2.6, which should be correct for Leopard from what I'm reading. However, it isn't serving the pages it should be serving (that is, nothing in my Sites folder is showing up).
What I want to know is this: Did restoring the old apachectl fix my problem (that is, should it now be pointing at the correct location for the built-in Apache server)? Can I now just edit the new httpd.conf files for the new built-in Apache 2.2 build, and then kill the custom install I put in /usr/local? Will that restore access to the pages living in Sites? Or am I going to have to kill the custom Apache thoroughly, then re-run the Leopard install? Is it possible it's just a permissions thing? Sites folder is read only for everyone except me... I'm listed as both user and group for all files. I didn't change this, but I seem to recall it being an issue before.
posted by caution live frogs to computers & internet (4 comments total)
That means httpd.conf isn't what you expect, at least with regards to the DocumentRoot directive. Edit the httpd.conf.
posted by DreamerFi at 4:37 AM on November 2, 2007