Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Can't restart apache from WHM

Discussion in 'EasyApache' started by dreglad, Dec 26, 2006.

  1. dreglad

    dreglad Registered

    Jul 14, 2004
    Likes Received:
    Trophy Points:
    Im am running latest cPanel/WHM on my CentOS 4.4 server

    When I try to restart httpd from WHM, I get this error:

    Attempting to restart httpd  	
    Waiting for httpd to restart.... . . . . . . . . . . finished.
    httpd status
    root      3794  0.7  0.9 20708 19400 ?       S    20:43   0:00 /usr/local/cpanel/whostmgr/bin/whostmgr ./reshttpd
    httpd has failed, please contact the sysadmin.
    I looked at the Apache log and I get this line (I hided my real address)
    [Tue Dec 26 20:43:58 2006] [crit] (98)Address already in use: make_sock: could not bind to address IP.ADD.RE.SS port 80
    When I run this command:
    netstat -anp | grep 80
    I see that there is NO service bind to port 80

    I can make Apache work perfectly starting it with:

    /usr/local/apache/bin/apachectl start
    But that way "Apache Status" script of WHM doesn't work, and I think there may be other stuff that doesn't work neither.
    I also think that after restarting I'll need to run apachectl manually everytime.

    I have several virtual interfaces, one with a second apache (2.0) installation, perhaps it is the problem.

    Can anyone help me?
    Does anyone know how exactly WHM restarts apache?

    Thank you in advance!
  2. adept2003

    adept2003 Well-Known Member

    Aug 11, 2003
    Likes Received:
    Trophy Points:
    ~ "/(extra|special)/data"
    WHM restarts apache with "/usr/local/apache/bin/apachectl startssl"

    The fact that you can start apache without SSL indicates that the problem is with the SSL setup - maybe an incorrect entry in the httpd.conf or a bad certificate.
    Check the log entries & try: /usr/local/apache/bin/apachectl configtest
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 adept2003, Dec 26, 2006
    Last edited: Dec 26, 2006

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice