Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop apache permanently on mac Mavericks?

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?

like image 705
Subtubes Avatar asked Dec 07 '13 09:12

Subtubes


People also ask

How do I know if Apache is running on my Mac?

Enable Apache on Mac OS XVerify if apache is running by accessing http://localhost: If you get “This site can't be reached”, you need to start apache, just type, sudo apachectl start and press enter: Verify localhost again: if you see “It works!” apache is running.

Where do I find Apache on Mac?

Find httpd. By default, Apache is enabled and installed in /etc/apache2/ , inside httpd. conf file, find DocumentRoot to tell where is the default localhost folder.


1 Answers

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.

like image 110
rob mayoff Avatar answered Sep 29 '22 06:09

rob mayoff