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.

Major Apache problems

Discussion in 'EasyApache' started by iNetter, Oct 25, 2004.

  1. iNetter

    iNetter Member

    Joined:
    Oct 28, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Allright here's the situation:

    Apache keeps crashing about every 5 minutes, and the only way I can get it to start backup again is by using the command: 'service httpd startssl' or by rebooting the server; nothing else works. Some errors I'm receiving when trying to start it other ways are:

    Code:
    /etc/init.d/httpd restart: configuration broken, ignoring restart
    /etc/init.d/httpd restart: (run 'apachectl configtest' for details)
    I ran httpd configtest, and here is what it showed:

    Code:
    Warning: DocumentRoot [/home/***/public_html] does not exist
    Warning: DocumentRoot [/home/***/public_html/blog] does not exist
    Warning: DocumentRoot [/home/***/public_html/loiterer] does not exist
    Warning: DocumentRoot [/home/***/public_html/sysdesign] does not exist
    Warning: DocumentRoot [/home/***/public_html/ziceco] does not exist
    Warning: DocumentRoot [/home/***/public_html/boyibbs.2ya.com] does not exist
    Warning: DocumentRoot [/home/***/public_html/oyibbs.2ya.com] does not exist
    Syntax error on line 1833 of /usr/local/apache/conf/httpd.conf:
    Invalid command 'SSLEnable', perhaps mis-spelled or defined by a module not included in the server configuration
    The thing is, I have never messed with the httpd.conf file. The only thing I've done is ran easyapache from WebHostManager just as I always have. I'm beginning to think easyapache isn't very reliable for upgrading Apache. Can anyone help me please? Thank you.
     
  2. haze

    haze Well-Known Member

    Joined:
    Dec 21, 2001
    Messages:
    1,550
    Likes Received:
    3
    Trophy Points:
    38
    Looks as though a few accounts were removed from your server, but were not removed from httpd.conf. Have a look in that file for those entries the configtest showed. Make sure they are no longer hosted on the server and remove or comment the lines ( comment for now, and do the homework might be best ).
     
  3. iNetter

    iNetter Member

    Joined:
    Oct 28, 2003
    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    1
    Ok I just did that, now how about this:

    Code:
    Syntax error on line 1833 of /usr/local/apache/conf/httpd.conf:
    Invalid command 'SSLEnable', perhaps mis-spelled or defined by a module not included in the server configuration
    I know I'm not supposed to remove the line 'SSLEnable'.
     
  4. nickn

    nickn Well-Known Member
    PartnerNOC

    Joined:
    Jun 15, 2003
    Messages:
    619
    Likes Received:
    1
    Trophy Points:
    18
    The problem appears to be that chkservd is trying to use start instead of startssl..

    You shoud use the command:

    /usr/local/apache/bin/apachectl startssl

    Check yoru chkservd file for apache, make sure it's using the appropriate command.
     
  5. Sinewy

    Sinewy Well-Known Member

    Joined:
    May 15, 2004
    Messages:
    367
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    Sydney, Australia
    cPanel Access Level:
    DataCenter Provider
    in turn chkservd comes back to the /scripts dir and fires up /scripts/restartsrv_httpd, one or the other. i don't have a ssh logged in to check at the moment.

    if the problem persists,

    run this command:
    cat /etc/chkserv.d/apache

    paste the results here.
     
  6. dgbaker

    dgbaker Well-Known Member
    PartnerNOC

    Joined:
    Sep 20, 2002
    Messages:
    2,578
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    Toronto, Ontario Canada
    cPanel Access Level:
    DataCenter Provider
    As his error states: Check that the mod_ssl module actually exists and is loaded.

    Make sure that this is still in your httpd.conf
    Code:
    <IfDefine SSL>
    AddModule mod_ssl.c
    </IfDefine>
    
    That will cause that error every single time. If it is not there, try adding it and restarting if still fails you will need to re-run easyapache and ensure SSL Module is selected.
     
  7. rafko

    rafko Registered

    Joined:
    Mar 30, 2004
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Please help!

    I have the same problem. I done everything was mentioned here and my apache is steel not working. Do you have any other suggestins?!?
     
  8. bjarne

    bjarne Well-Known Member

    Joined:
    Mar 23, 2002
    Messages:
    135
    Likes Received:
    0
    Trophy Points:
    16
    I would try:

    service httpd start

    /usr/local/apache/bin/apachectl start

    /usr/local/apache/bin/apachectl startssl

    One of these commands shuld work. The fact there are som webroots not present shuld not stop apache from starting.

    You may consider compiling apache with no ssl in apache, that will solve some problems at times with apache.
     
Loading...

Share This Page