Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    May 2003
    Posts
    92
    cPanel/Enkompass Access Level

    DataCenter Provider

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

    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.
    Memset Dedicated Hosting
    Managed, dedicated and VPS systems
    http://www.memset.com

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge Zishan's Avatar
    Join Date
    Aug 2005
    Posts
    104

    Default

    You should try:

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

    /usr/local/cpanel/bin/build_apache_conf

    and then restart Apache

  3. #3
    Member
    Join Date
    May 2007
    Posts
    23

    Default

    Backup your httpd.conf and rename it. Then run this command

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

  4. #4
    Member
    Join Date
    Jan 2005
    Posts
    6

    Default Re: Faulty httpd.conf - can't rebuild with rebuildhttpd.conf

    .....................
    .....................

    Both the scripts did not include the php configuration file to apache conf, when I tried.............

    .....................
    .....................

  5. #5
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Faulty httpd.conf - can't rebuild with rebuildhttpd.conf

    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).
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. Preserve amends to /etc/httpd/conf/httpd.conf ?
    By robocrop in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-14-2010, 02:08 AM
  2. Why cpanel rebuild httpd.conf and miss my config
    By hekri in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-20-2010, 01:47 AM
  3. Adding an Alias to an account in httpd.conf that will survive a rebuild?
    By Kadence in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-04-2009, 05:03 AM
  4. httpd.conf sites/www.domain.com.conf Wildcard DNS
    By ttremain in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-16-2008, 11:19 AM
  5. Conf rebuild fix
    By darklord1 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-11-2008, 10:57 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube