macosapachemacos-mojave

Can't stop or restart Apache on Mac Os Mojave


Since i updated to MacOs Mojave, i cannot stop or restart Apache anymore. When i run the command below :

sudo apachectl --stop

I always get an error like this :

httpd (pid 101) already running

To stop or restart Apache i actually need go to Activity Monitor and force close all 'httpd' processes. Sometimes it works but sometimes the only way is to restart my machine. This issue happened in Mojave, in previous versions i did not have this problem.

Any solution / hint ?

Thanks


Solution

  • On Mojave, try:

    sudo apachectl stop
    

    I get a pid error too with --stop.