WebHostDog

Well-Known Member
Sep 3, 2006
143
1
166
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
 

carluk

Well-Known Member
Sep 2, 2003
161
0
166
Which version of cpanel are you using?
 

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
79
458
cPanel Access Level
Root Administrator
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
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.
 

nazmy

Member
Oct 31, 2004
16
0
151
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: [email protected]
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: [email protected]
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