Results 1 to 2 of 2

Thread: Can't restart apache from WHM

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    1

    Default Can't restart apache from WHM

    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. #2
    Member adept2003's Avatar
    Join Date
    Aug 2003
    Location
    ~ "/(extra|special)/data"
    Posts
    283

    Default

    Does anyone know how exactly WHM restarts apache?
    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
    Last edited by adept2003; 12-26-2006 at 10:04 PM.
    Chad
    Adept Hosting Ltd
    UK Web Hosting

Similar Threads

  1. Apache won't restart after installing wildcard SSL in WHM - PROBLEM sites offline
    By Niels Leenders in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 01-14-2011, 12:32 PM
  2. apache failing to restart in WHM?
    By wisenerl in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 01-14-2007, 09:56 PM
  3. How to restart Apache and WHM using Putty , Urgent help!!
    By wangtenet in forum cPanel & WHM Discussions
    Replies: 8
    Last Post: 11-13-2005, 07:14 AM
  4. Weird WHM/Restart Apache Problem
    By sbrad in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 12-22-2002, 04:03 PM
  5. After SSl instal WHM wont restart apache but comand line wil
    By JeremyL in forum cPanel & WHM Discussions
    Replies: 1
    Last Post: 10-29-2001, 01:23 PM