I'm on a fresh 10.9 install and the default Apache server is org.apache.httpd: Already loaded
after each startup. Is there a way to disable that autostart?
Disable Apache autostart
apachewebserver
Related Question
- How should I go about restarting a custom Apache install
- Apache goes to sleep on new OS X 10.9
- MacOS – What Is The Path Where Apache Is Located
- MacBook Pro Apache – Safari Can’t Open localhost After Starting Apache on El Capitan
- Does FileMaker Server 16 prevent use of the system apache in macOS
- Homebrew Apache – How to Start on Boot
- Installed Apache 2.4 (httpd) using Home Brew, can I get it to use macOS’ php7
Best Answer
OS X provides
launchctl
to control which daemons are started at boot time.To stop and disable Apache:
Type the following command (type your login password when
sudo
requests it):A few words on
launchctl
's-w
optionThe
-w
option is the silver bullet for stopping/disabling Apache. It tellslaunchctl
to do its job regardless of any configuration settings that would otherwise prevent it from unloading the service, as explained inman launchctl
:(It turns out that, in OS X Mavericks (10.9), "elsewhere on-disk" is
/private/var/db/launchd.db/com.apple.launchd/overrides.plist
.)The
-w
option is indispensable if you started Apache withapachectl start
: as explained in this Superuser answer.apachectl
not only starts Apache but also modifies/private/var/db/launchd.db/com.apple.launchd/overrides.plist
like this:In this particular case you can also use
apachectl
:to stop Apache and to set
Disabled
totrue
.