15

I have several instances of httpd running on my Mac. Don't need to run a web server, would like to end them all, as they add up to about 100mb of unnessecary RAM. What is the configuration that sets them to run? How can I disable it?

dmanexe
  • 320

3 Answers3

46

Mountain Lion removed the Web Sharing option, maybe you upgraded and had it running some time in the past? Anyway, you'll need to open Terminal for this:

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

The first will fail if you've already killed all the processes, the second disables startup.

Jeff
  • 616
3

Open the Sharing preference pane in System Preferences and uncheck Web Sharing.

Daniel Beck
  • 111,893
0

sudo kill -9 [PID] and entering the process ID for PID ends any process. This can kill httpd . Now, you want to remove httpd form startup since you dont use it anyway. Go to:

Library/LaunchAgents

Library/LaunchDaemons

Library/StartupItems

and remove httpd from these locations. This will stop it from ever running again. You can keep a backup though just in case you want the Apache web server in the future.