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.

Can't restart apache from WHM

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

  1. dreglad

    dreglad Registered

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

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

    Code:
    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)
    Code:
    [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:
    Code:
    netstat -anp | grep 80
    
    I see that there is NO service bind to port 80

    I can make Apache work perfectly starting it with:

    Code:
    /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

    Joined:
    Aug 11, 2003
    Messages:
    283
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    ~ "/(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
     
    #2 adept2003, Dec 26, 2006
    Last edited: Dec 26, 2006
Loading...

Share This Page