Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop Apache server on Mac High Sierra

I'm trying to stop apache server on my macbook. I've tried the following

$ sudo apachectl stop

/System/Library/LaunchDaemons/org.apache.httpd.plist: Could not find specified service

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

/System/Library/LaunchDaemons/org.apache.httpd.plist: Could not find specified service

What am i doing wrong?

like image 247
Vahagn Sargsyan Avatar asked Apr 18 '18 22:04

Vahagn Sargsyan


People also ask

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.


4 Answers

sudo killall httpd 

This should work.

like image 134
Umesh Raj Satyal Avatar answered Oct 24 '22 12:10

Umesh Raj Satyal


see https://superuser.com/a/1110751/925311:

sudo launchctl unload -w /Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/com.apple.serviceproxy.plist
like image 42
Travis Warlick Avatar answered Oct 24 '22 12:10

Travis Warlick


try sudo killall httpd && sudo launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist it's worked on my machine

like image 28
Free Avatar answered Oct 24 '22 13:10

Free


sudo apachectl start

then

sudo apachectl stop

is what worked for me

like image 26
k__g Avatar answered Oct 24 '22 14:10

k__g