Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I just upgraded my OS to Mountain Lion and found that my local server wasn't working anymore. As I began to work through trying to fix that, I found that running sudo apachectl stop returns launchctl: Error unloading: org.apache.httpd

What does this mean, and how do I fix it?

Thanks guys!

share|improve this question
up vote 5 down vote accepted

launchctl: is shown because apachectl is using launchd's control script, launchctl, to start and stop Apache.

Error unloading means the given daemon/service of launchd can not be stopped. This usually happens if the given daemon is already stopped.

org.apache.httpd is the name of the plist file defining how httpd is run by launchd. If you are curious the actual plist is at


If the server is merely off just use:

sudo apachectl start

to get it running again.

Otherwise I would check system.log (you can use and see if there are any, more informative, error messages.

share|improve this answer

try running the following command to see more verbosely what errors you're getting

sudo bash -x /usr/sbin/apachectl -k stop
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.