##Disable Integrated Apache Server in OSX
This will stop a running instance of Apache, and record that it should not be restarted. In otherwords, Apache stays disabled even after rebooting.
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist
command/flags | description |
---|---|
sudo |
run as root (administrator) account |
launchctl |
OS X program interfaced with launchd which is a daemon manager |
unload |
tells launchctl to unload a configuration file |
-w | tells launchctl to override a disabled key forcing the file to be marked as disabled |
/System/Library/LaunchDaemons/org.apache.httpd.plist |
file we are unloading |
in the end, the config changes are stored in /private/var/db/launchd.db/com.apple.launchd/overrides.plist