Announcing:

LessMoney Conference will be June 7th in Tampa! Register today and make us smile super big!

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.

4 Comments

Cezary Okupski
Cezary Okupski said on August 16, 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?

Chris Chandler
Chris Chandler said on August 16, 2007

What happened to Mongrel??

Steven A Bristol
Steven A Bristol said on August 17, 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.)

Steven A Bristol
Steven A Bristol said on August 17, 2007

Chris,

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

Leave a Comment

About Steven
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.

You Should...

Follow Steven on Twitter
Friend Steven on Facebook
Subscribe
LessEverything Copyright 2011 LessEverything.com
We don't like footers, they're kinda boring