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.

error from rebuildhttpdconf (and buildhttpdconf)

Discussion in 'General Discussion' started by Dmitry M., Jan 15, 2008.

  1. Dmitry M.

    Dmitry M. Active Member

    Joined:
    Dec 4, 2003
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    Hello.

    I'm getting this trying to rebuild apache config

    # /scripts/buildhttpdconf
    [Cpanel::AdvConfig::apache]: Missing IP for domain some_domain.com, using 213.10.10.10
    [Cpanel::AdvConfig::apache]: Missing port for domain some_domain.com, using 80
    [Cpanel::AdvConfig::apache]: Missing user for domain some_domain.com, using user5
    [Cpanel::AdvConfig::apache]: Missing group for domain some_domain.com, using user5
    [Cpanel::AdvConfig::apache]: Missing ServerName for domain some_domain.com, using some_domain.com
    Use of uninitialized value in split at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 701.
    [Cpanel::AdvConfig::apache]: Missing IP for domain some_domain.com, using 213.10.10.10
    [Cpanel::AdvConfig::apache]: Missing port for domain some_domain.com, using 80
    [Cpanel::AdvConfig::apache]: Missing user for domain some_domain.com, using user5
    [Cpanel::AdvConfig::apache]: Missing group for domain some_domain.com, using user5
    [Cpanel::AdvConfig::apache]: Missing ServerName for domain some_domain.com, using some_domain.com
    Use of uninitialized value in split at /usr/local/cpanel/Cpanel/AdvConfig/apache.pm line 701.
    Failed to generate a syntactically correct Apache configuration.
    Bad configuration file located at /usr/local/apache/conf/httpd.conf.1200434764
    Error:
    Syntax error on line 731 of /usr/local/apache/conf/httpd.conf.1200434764:
    DocumentRoot takes one argument, Root directory of the document tree


    Notes: 1. some_domain.com is listed in "List Domains" in WHM
    2. There is no Virtual Host for some_domain.com (even if I create it manually it won't work)
    3. User config in /var/cpanel/users is ok, no any problem there even after /scripts/updateuserdomains
    4. The domain is in /etc/trueuserdomains

    Any thoughts?
     
  2. Dmitry M.

    Dmitry M. Active Member

    Joined:
    Dec 4, 2003
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    6
    We have fixed this error in very long and not smart (at least) way. We recreated virtual host for the domain manually, then use
    /usr/local/cpanel/bin/apache_conf_distiller --update
    to implement changes. Besides many errors it made needed changes.

    Next /scripts/buildhttpdconf command was successful.

    This fix is ok if you don't need to re-add 84 subdomains manually for the account :mad:

    Ok, the thing I found is: to generate correct httpd.conf cpanel needs what? Yes, it needs correct httpd.conf. Otherwise the generate command won't work. I don't see some logic here :)
     
Loading...

Share This Page