Apache2 Won't Start: (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80
8,907
there is already something bound to that port, that's why apache complains.
Try this to find out what is using port 80/tcp:
# ss --listening --tcp --numeric --processes
you should get a list of open listening sockets with the local address:port combination and the process that has opened each of them. Find out which one has opened port 80, stop that process and start apache again, it should work.
Related videos on Youtube
Author by
Beto Damian
Updated on September 18, 2022Comments
-
Beto Damian over 1 year
I've been trying to use Apache2 to put an SSL certificate on my Ubuntu Server 18.04.4 LTS for Nextcloud, and I can't even get a far as to start Apache. I keep getting this error:
I've looked up solutions to this and found about a hundred of them, each of them not working, or I just don't know how to solve it properly.
Help would be much appreciated, I've been suck on this for a few days now. :(
-
Beto Damian about 4 yearsThe service is "httpd", and I've seen it before. It's affiliated with Nextcloud. How would I stop it, or should I stop it?
-
natxo asenjo about 4 yearsthen you should restart httpd, nextcloud uses it and it's already started
-
vidarlo about 2 yearsHow does this answer the question?
-
another victim of the mouse about 2 years@vidarlo it's the instructions for adding SSL to Nextfloud using apache2.
-
vidarlo about 2 yearsYes. But how does it answer the question given the error message the user is struggling with?
-
another victim of the mouse about 2 yearshe's specifically said he's be trying to put "Apache2 to put an SSL certificate on my Ubuntu Server 18.04.4 LTS for Nextcloud."