Allan & Steve are the chubby founders of LessEverything. This is their blog, hear them rant, praise, give advice and talk about Just Stuff, Less Accounting, Lovd by Less, More Honey, Less Memories, Code, Business, Design, Marketing
Chat with Us
August 16th, 2007

Apache not starting on boot OS X? Here's how to fix:

written by Steven Bristol

#>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-

4 Responses to “Apache not starting on boot OS X? Here's how to fix:”

  1. Cezary Okupski August 16th, 2007

    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?

  2. Chris Chandler August 16th, 2007

    What happened to Mongrel??

  3. Steven A Bristol August 17th, 2007

    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.)

  4. Steven A Bristol August 17th, 2007

    Chris,

    Nothing happened to mongrel. I still use mongrel for development, but I use apache to run phpmyadmin.

Leave a Reply