How to stop apache permanently on mac Mavericks?

Le Garden Fox picture Le Garden Fox · Dec 7, 2013 · Viewed 55.8k times · Source

I'm trying to install zend server on mac and need to uninstall the apache server that is auto included with Mavericks so that the Apache server included with Zend is used instead. Can it be prevented from running on startup or permanently removed?

Answer

rob mayoff picture rob mayoff · Dec 7, 2013

Try this:

sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist

This will stop a running instance of Apache, and record that it should not be restarted. It records your preference in /private/var/db/launchd.db/com.apple.launchd/overrides.plist.