Saturday, October 04th, 2008 | Author: Angelo

Hello,

While starting apache service on cPanel server if you are getting as given below.

(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 or 443
no listening sockets available, shutting down
Unable to open logs

Then it is because httpd is stopped but http port 80 or 443 are still engaged with other service such as exim or mysql. In such case you need to execute following command to find with which service apache port is engaged.
netstat -nap | grep 0.0.0.0:80 or netstat -nap | grep 0.0.0.0:443

For example :: In output if you found exim ( tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 789/exim)
To fix this issue you need to simply restart the exim service on server .

Category: apache
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

3 Responses

  1. 1
    pyaephyowai 
    Saturday, 25. October 2008

    when i check netstat -nap |grep 0.0.0.0:80

    i found that tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 7604/httpd

    when i check httpd like that

    httpd
    (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

    I found that error.

    Let me know solution for that.

  2. In such case kill the process forcefully 7604(PID)”LISTEN 7604/httpd” using command

    kill -9 7604

  3. Hi,
    I tried netstat with both 80 and 443 but no process were seen.Still the error is existing.
    Any other solution?

Leave a Reply