Apache failed to start: "could not bind to address 0.0.0.0:80"

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 10.4 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux
  • Plesk 10.0.0 for Linux

Created:

2016-11-16 13:05:02 UTC

Modified:

2017-02-14 10:13:10 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Apache failed to start: "could not bind to address 0.0.0.0:80"

Symptoms

Apache failed to start:

[root@hostname ~]# service httpd status
httpd is stopped

[root@hostname ~]# service httpd start
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs
[FAILED]

Cause

The most common cause is that the httpd process is stuck.

Resolution

  1. Find the PID of the stuck httpd process:

    [root@hostname ~]# netstat -lpvn|grep \\:80
    tcp 0 0 :::80 :::* LISTEN 13293/httpd

    This output indicates that the process with PID 13293 listens on port 80.

  2. Kill the process:

    [root@hostname ~]# kill 13293
  3. Start Apache:

    [root@hostname ~]# service httpd start
    Starting httpd: [ OK ]
Have more questions? Submit a request
Please sign in to leave a comment.