Launchctl Error Unloading Org.macports.apache2
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Server Fault Questions Tags Users Badges Unanswered Ask Question _ 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: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top launchctl: Error unloading: org.apache.httpd up vote 3 down vote favorite 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! apache-2.2 mac-osx share|improve this question asked Jul 26 '12 at 23:29 CourtDemone 223148 add a comment| 2 Answers 2 active oldest votes 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 /System/Library/LaunchDaemons/org.apache.httpd.plist 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 Console.app) and see if there are any, more informative, error messages. share|improve this answer answered Aug 2 '12 at 6:59 Hawken 240210 add a comment| up vote 3 down vote 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 answered Jul 27 '12 at 4:04 Ryan 24317 add a comment| Your Answer draft saved draft discarded Sign
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up MacPorts Apache2 Stopped Launching on Boot up vote 7 down vote favorite 2 Something that I've noticed recently on two http://serverfault.com/questions/411652/launchctl-error-unloading-org-apache-httpd different machines is that Apache2 installed via MacPorts seems to have stopped launching when I boot up. The honest truth is that I can't swear it did so before, but it's something I think I'd notice because installing the LaunchDaemon is part of my install process. In fact, if I try to reload the LaunchDaemon, it fails: $ sudo launchctl load -w /Library/LaunchDaemons/org.macports.apache2.plist org.macports.apache2: Already loaded Unless I start Apache manually (using sudo http://stackoverflow.com/questions/2042992/macports-apache2-stopped-launching-on-boot apachectl restart), grep'ing for either "apache2" or "httpd" in my process list only produces this: $ sudo ps -ef | egrep "apache2|httpd" 0 52 1 0 0:00.06 ?? 0:00.08 /opt/local/bin/daemondo --label=apache2 --start-cmd /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper start ; --stop-cmd /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper stop ; --restart-cmd /opt/local/etc/LaunchDaemons/org.macports.apache2/apache2.wrapper restart ; --pid=none 1410639199 6960 6792 0 0:00.00 ttys001 0:00.00 egrep apache2|httpd Looks like the daemon itself is in place, but no executable. As far as I know/can tell, the relevant executables (httpd and apachectl) are executable by everyone. Has anyone else noticed this? Any ideas? UPDATE As requested below, I did execute launchctl list. The list is long and I'm not sure how to snip it, but suffice to say that no org.macports.* items are listed. That in itself is interesting because my MySQL daemon is loaded the same way. It works, but also doesn't appear in the list. Let me know if the entire output is really needed. UPDATE I assumed that I had executed launchctl list under sudo, but prompted by mipadi's comment below, I tried again ensuring that I did so and I assumed incorrectly. When executed under sudo, the MacPorts items appear: 51 - org.macports.mysql5 52 - org.macports.apache2 I'm not sure whether that will help, but it's a little more info nonetheless. UPDATE I've asked a different, but related, question at htt
Start here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack http://apple.stackexchange.com/questions/34116/how-do-i-stop-apache-from-starting-up-automatically Overflow the company Business Learn more about hiring developers or posting ads with us Ask Different Questions Tags Users Badges Unanswered Ask Question _ Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the launchctl error top How do I stop Apache from starting up automatically? up vote 6 down vote favorite 1 I'm running Mac OS X Lion 10.7.2 and Web Sharing is turned off in System Prefs. I don't think this is specifically related to Lion. Basically, I'm a frontend developer and there are always backend developers messing around in my terminal trying to make my life easier, but not explaining exactly what they're doing. So launchctl error unloading I suspect someone put something somewhere to explicitly command my Mac to start Apache automatically on startup. Here's all I know: ps aux | grep apache shows that Apache is running launchctl list doesn't show Apache afaik, but if it did I wouldn't know what it would be called anyway sudo apachectl stop returns launchctl: Error unloading: org.apache.httpd sudo apachectl -k stop returns httpd (no pid file) not running Any advice would be appreciated. Thank you. lion startup apache share|improve this question edited Oct 4 '12 at 16:45 gentmatt 30.6k32144239 asked Dec 19 '11 at 3:49 Tracy Fu 133115 1 what does ps aux | grep apache actually output? Also, perhaps you installed a secondary Apache installation through other means (MAMP, Macports, ...)? –Gerry Dec 19 '11 at 9:10 No MAMP or Macports running, but thank you for the suggestion. –Tracy Fu Dec 19 '11 at 20:44 Please refer to this answer. Read the comments too. –Siu Ching Pong -Asuka Kenji- Jul 15 '13 at 3:13 add a comment| 2 Answers 2 active oldest votes up vote 7 down vote accepted Are you sure that it is apache you are seeing running. When you do the ps aux|grep apache You will see one process ( the shell pro