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.

Faulty httpd.conf - can't rebuild with rebuildhttpd.conf

Discussion in 'General Discussion' started by movielad, Jan 8, 2009.

  1. movielad

    movielad Well-Known Member
    PartnerNOC

    Joined:
    May 14, 2003
    Messages:
    107
    Likes Received:
    2
    Trophy Points:
    18
    cPanel Access Level:
    DataCenter Provider
    I'm trying to rebuild a faulty httpd.conf file, but am getting stuck with the following issue which occurs during a temporary httpd.conf build:

    # WHM DOMAIN FORWARDING VHOST
    <VirtualHost >
    ServerName
    ServerAdmin root@localhost
    DocumentRoot /dev/null
    ScriptAliasMatch .* /usr/local/cpanel/cgi-sys/domainredirect.cgi
    </VirtualHost>

    When I try to edit /usr/local/apache/conf/httpd.conf itself, I can't see to locate this particular section and am assuming this is coming from one of the other template files. Is there any way of fixing this quickly?

    M.
     
  2. Zishan

    Zishan Well-Known Member

    Joined:
    Aug 6, 2005
    Messages:
    104
    Likes Received:
    1
    Trophy Points:
    0
    You should try:

    /usr/local/cpanel/bin/apache_conf_distiller --update

    /usr/local/cpanel/bin/build_apache_conf

    and then restart Apache
     
  3. vivekvsist

    vivekvsist Active Member

    Joined:
    May 29, 2007
    Messages:
    26
    Likes Received:
    0
    Trophy Points:
    1
    Backup your httpd.conf and rename it. Then run this command

    Code:
    /scripts/rebuildhttpdconfig
    It will regenerate the httpd.conf file.
     
  4. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    I don't entirely understand the issue you are having. What is the exact error message? I'm not aware of any error message that would show the lines you did in your initial post. Please provide the exact error message that is being received and how you determined those lines, which you state aren't in /usr/local/apache/conf/httpd.conf file, comes into play in this issue (where you are seeing those lines occur).
     
Loading...

Share This Page