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.

Problem with /scripts/rebuildhttpdconf

Discussion in 'General Discussion' started by WebHostDog, Jan 17, 2008.

  1. WebHostDog

    WebHostDog Well-Known Member

    Joined:
    Sep 3, 2006
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Website Owner
    Hello,Any idea why after cPanel update this starts happening?:

    /scripts/rebuildhttpdconf
    [Cpanel::AdvConfig::apache]: Skipping addon domain domain.com for username, corresponding sub domain fxdragons.domain.com does not exists
    Use of uninitialized value in split at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 921.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    [Cpanel::AdvConfig::apache]: Skipping addon domain domain.com for username, corresponding sub domain fxdragons.domain.com does not exists
    Use of uninitialized value in split at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 921.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Use of uninitialized value in string comparison (cmp) at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 981.
    Failed to generate a syntactically correct Apache configuration.
    Bad configuration file located at /usr/local/apache/conf/httpd.conf.1200565591
    Error:
    Syntax error on line 290 of /usr/local/apache/conf/httpd.conf.1200565591:
    <VirtualHost> directive requires additional arguments
     
  2. carluk

    carluk Well-Known Member

    Joined:
    Sep 2, 2003
    Messages:
    162
    Likes Received:
    0
    Trophy Points:
    16
    Which version of cpanel are you using?
     
  3. WebHostDog

    WebHostDog Well-Known Member

    Joined:
    Sep 3, 2006
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Website Owner
    Hello,
    Latest Release 19434.
     
  4. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    The VHost block that begins on line 290 of the httpd.conf temporary file listed is invalid. From the message printed, the opening VirtualHost directive does not have an IP Address lsited. This suggests the userdata (/var/cpanel/userdata) for that particular domain is corrupted. Track down who owns the domain in question and look at the file in /var/cpnael/userdata/user/example.com as well as /var/cpanel/userdata/user/main to ensure the data is correct.
     
  5. WebHostDog

    WebHostDog Well-Known Member

    Joined:
    Sep 3, 2006
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Website Owner
    Hello Kenneth,
    That helped and I have resolved it.
     
  6. nazmy

    nazmy Member

    Joined:
    Oct 31, 2004
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    1
    this error is repeating over multiple accounts specially subdomains and all the entries in userdata dir seems fine
    Here is an example :

    /var/cpanel/userdata/user/subdomain.domain.com (before apache rebuild)
    ===================================
    ---
    documentroot: /home/domain/public_html/subdomain
    group: user
    hascgi: 1
    homedir: /home/user
    ip: x.x.x.x
    options: ExecCGI Includes
    phpopenbasedirprotect: 1
    serveradmin: webmaster@subdomain.domain.com
    serveralias: www.subdomain.domain.com
    servername: subdomain.domain.com
    usecanonicalname: On
    user: user
    userdirprotect: ''
    ===================================

    After
    ===================================
    ---
    byteslog: /usr/local/apache/domlogs/subdomain.domain.com-bytes_log
    customlog:
    -
    format: combined
    target: /usr/local/apache/domlogs/subdomain.domain.com
    documentroot: /home/user/public_html/subdomain
    group: user
    hascgi: 1
    homedir: /home/user
    ifmoduleconcurrentphpc: {}

    ip: x.x.x.x
    owner: reseller
    phpopenbasedirprotect: 1
    port: 80
    scriptalias:
    -
    path: /home/user/public_html/subdomain/cgi-bin/
    url: /cgi-bin/
    serveradmin: webmaster@subdomain.domain.com
    serveralias: www.subdomain.domain.com
    servername: subdomain.domain.com
    usecanonicalname: 'Off'
    user: user
    userdirprotect: ''
    ===================================

    I tired removing sub domain with problem but as I said just the next sub domain will report same error

    Syntax error on line 1072 of /usr/local/apache/conf/httpd.conf.1200787289:
    <VirtualHost> directive requires additional arguments

    This is on build : 11.17.0-RELEASE_19434
     
Loading...

Share This Page