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.

Share:
8,907

Related videos on Youtube

Beto Damian
Author by

Beto Damian

Updated on September 18, 2022

Comments

  • Beto Damian
    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:

    Error Picture

    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
    Beto Damian about 4 years
    The 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
    natxo asenjo about 4 years
    then you should restart httpd, nextcloud uses it and it's already started
  • vidarlo
    vidarlo about 2 years
    How does this answer the question?
  • another victim of the mouse
    another victim of the mouse about 2 years
    @vidarlo it's the instructions for adding SSL to Nextfloud using apache2.
  • vidarlo
    vidarlo about 2 years
    Yes. But how does it answer the question given the error message the user is struggling with?
  • another victim of the mouse
    another victim of the mouse about 2 years
    he'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."