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.

HTTPD will not restart

Discussion in 'General Discussion' started by Serra, Nov 18, 2010.

  1. Serra

    Serra Well-Known Member

    Joined:
    Oct 27, 2005
    Messages:
    213
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    Florida
    Twice in the past few months, I've had httpd fail to restart because of junk in httpd.conf. Today I terminated an account. A few hours later I installed an SSL for another site and httpd didn't restart with an unknown account listed in httpd.conf.

    I'm not sure what the 'proper' way to fix that issue was, when the server is down, I use the direct approach and just fix the problem, but I'm somewhat disturbed that a terminated account would linger around on httpd.conf. It seems to be that the prior issue was also a terminated account.

    Is anyone else seeing these issues? Is it something I did/didn't do?

    Also, is there a way to rebuild httpd.conf in an emergency? I'll add it to my notes.
     
  2. cPanelJared

    cPanelJared Technical Analyst
    Staff Member

    Joined:
    Feb 25, 2010
    Messages:
    1,842
    Likes Received:
    18
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    To rebuild the httpd.conf file:

    Code:
    # cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak.old
    # /scripts/rebuildhttpdconf
    # /usr/local/apache/bin/apachectl configtest
    # /scripts/restartsrv_httpd
    If this is a recurring issue when creating or terminating an account, please submit a ticket so that we can investigate it and fix it for you.
     
Loading...

Share This Page