Apache not starting on boot OS X? Here's how to fix:
written by Steven on August 16, 2007
#>sudo vi /etc/hostconfig
(or your favorite editor)
Should look something like this:
AUTHSERVER=-NO- AUTOMOUNT=-YES- CUPS=-AUTOMATIC- NFSLOCKS=-AUTOMATIC- NISDOMAIN=-NO- TIMESYNC=-YES- QTSSERVER=-NO- WEBSERVER=-NO- SMBSERVER=-NO- SNMPSERVER=-NO- SPOTLIGHT=-YES- ARDAGENT=-YES- CRASHREPORTER=-YES- MYSQLCOM=-YES-
Change the line
WEBSERVER=-NO-
to
WEBSERVER=-YES-
Learn how LessEverything built their consultancy to over $1,000,000 annual revenue at LessMoney Conference, June 7th in Tampa Florida. Each attendee will get early access to our upcoming ebook as well.
Leave a Comment
About Steven
Popular Articles
Subscribe

Steven Bristol has written code for the past 20 years. He like green vegetables and kittens, oh and butterflies too. He loves to throw ninja stars at his enemies.

4 Comments
Isn’t that a more complicated way of doing “System preferences… → Sharing → Services (tab) → tick Personal Web Sharing” in Tiger? :> As I can see it does the same edit with hostconfig.
Or have you got any custom Apache install?
What happened to Mongrel??
Cezary,
It is more complicated. My “Personal Web Sharing” box was already ticked but that was not reflected in the file. (My hard drive died on Sunday night, so this is a new install. I don’t know why it wasn’t working.)
Chris,
Nothing happened to mongrel. I still use mongrel for development, but I use apache to run phpmyadmin.