The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache failing to start , unable to bind to port 443.

Discussion in 'Bind / DNS / Nameserver Issues' started by a.sheipani, Aug 27, 2012.

  1. a.sheipani

    a.sheipani Member

    Joined:
    Jan 29, 2007
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    I have came across an interesting issue today, I tought to share it with in case it would save someone some time.

    Apache suddenly stopped working, I started receiving email from ChkServd with the following:
    Code:
    httpd failed @ Mon Aug 27 08:16:51 2012. A restart was attempted automagically.
    
    Service Check Method:  [socket connect] 
    
    Reason: Unable to connect to port 80 on 127.0.0.1: Connection refused: Died at /usr/local/cpanel/Cpanel/TailWatch/ChkServd.pm line 577.
    
    
    Number of Restart Attempts: 6
    
    Startup Log: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:443 no listening sockets available, shutting down Unable to open logs
    
    Running the following commands shows that there is nothing listening on port 443:
    Code:
    lsof -i :443
    netstat -an | grep 443
    
    After looking deeper I found that apache was just updated, and mysteriously the entry
    was added to httpd.conf, this conflicts with the same entry in ssl.conf.

    Removing one of the entries fixed the problem.
     

Share This Page