Stephen Mather Stephen Mather - 3 months ago 24
Apache Configuration Question

Killing an unknown self restarting server on port 80 Mac OSX

I have a server running on port 80, but I do not know what it is or where it came from. When I run

sudo lsof -i :80 | grep LISTEN


I get

httpd 80 root 5u IPv6 0x91f5a9de62859cfd 0t0 TCP *:http (LISTEN)
httpd 694 _www 5u IPv6 0x91f5a9de62859cfd 0t0 TCP *:http (LISTEN)


I have tried to enter get the process name using the PID, but all I ever get in return is "httpd" or "FOREGROUND".

When I kill the PID, the process simply restarts with a new PID. I assume I will have to stop it at launch.

How can I stop this server from running at startup?

If it helps any, I am trying to free up port 80 to use the apache server on MAMP.

Answer

Like Gordon suggested, that's the built-in version of the Apache web server.

You can stop it with

sudo apachectl stop

btw, the configuration for this webserver can be found in the /etc/apache2/httpd.conf directory.