Disable Apache on Mac OS X – Step-by-Step Guide

apache-2.2mac-osx

On my Mac OS X, Web Sharing is disabled in
System Preferences -> Sharing -> Services -> "Personal Web Sharing". Still, when I type "localhost" in the browser, I get the "It works!" message, meaning that Apache is still running. How do I disable it?

Currently the bundled Apache port 80 is conflicting with my MAMP installation, since I want MAMP to run on 80.

Best Answer

Disabling Web Sharing in System Preferences should disable Apache.

However, make sure that when you load "localhost" in your browser, that you force a refresh rather than your browser loading the cached response from when Apache was running. You can force a refresh by Command-Shift-R in many browsers (as opposed to Command-R for a normal refresh).

Additionally, you can verify that Apache is no longer loaded by running this command in Terminal:

ps aux | grep httpd

If Apache is loaded, you will see a ps entry for

/usr/sbin/httpd