The Computer Oracle

Can I end all httpd processes? (OSX, 10.7.4, Lion)

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Fantascape Looping

--

Chapters
00:00 Can I End All Httpd Processes? (Osx, 10.7.4, Lion)
00:26 Answer 1 Score 0
01:03 Answer 2 Score 3
01:13 Accepted Answer Score 46
01:33 Thank you

--

Full question
https://superuser.com/questions/486966/c...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#macos #osxlion #httpd

#avk47



ACCEPTED ANSWER

Score 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.




ANSWER 2

Score 3


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




ANSWER 3

Score 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.