skip to Main Content

I use brew to install httpd, I stopped the service using brew services stop httpd then I visit locahost, I still can see apache is running?

2

Answers


  1. You need to give following command: service httpd stop

    Login or Signup to reply.
  2. You must kill the processes. As I can see from your comment you are running httpd as the users www and root:

    _www 3356 0.0 0.0 2455088 704 ?? S 9:25AM 0:00.00 /usr/sbin/httpd -D FOREGROUND 
    root 3355 0.0 0.0 2455344 3588 ?? Ss 9:25AM 0:00.14 /usr/sbin/httpd -D FOREGROUND 
    private.laptop 3967 0.0 0.0 2444068 816 s004 S+ 9:46AM 0:00.00 grep httpd
    

    The first column represent the user and the second column the process ID or PID.

    Try running:

    sudo kill -9 3356
    sudo kill -9 3355
    

    After each execution verify the services dissapear using ps aux | grep httpd

    The last proccess private.laptop isn’t related to your problem so no need to kill it.

    If your problem isn’t solved by this, maybe a daemon is executing your httpd, please refeer to this.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search