9/10/2017 - 2:14 AM

Prevent Apache from autostarting at boot

Prevent Apache from autostarting at boot



1) Enter this command to stop Apache if it is running, the second line below (not prefixed with $) is the error I received from the command, this is to be expected as it shouldn’t be running.

$ sudo apachectl stop
/System/Library/LaunchDaemons/org.apache.httpd.plist: Could not find specified service

2) This command will stop Apache from starting on boot.
sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist 2>/dev/null