cPanel - Subdomain not being created - vhost file not being updated

Bezz

Registered
May 17, 2012
1
0
51
cPanel Access Level
Root Administrator
Hey,

So one of my cpanel boxes is set to automatically update. I simply logged on one day and noticed a brand new UI. Unfortunately, since then I haven't been able to create subdomains (and I fear that may just be the tip of the iceberg, I haven't really gone through to try to find any other errors).

It's not a DNS issue, as the subdomain resolves to the server, but it shows the default cPanel page. I quickly checked Apache's vhost file (which I noticed appeared to be generated previously as it had old subdomains), but none of the new subdomains had been added. So the problem it appears lies in the fact that the vhost file isn't being regenerated when I add a new subdomain.

It's late, so I'm not going to go in and try to find the solution now, but I was just wondering if anybody had any suggestions as to what could possibly be causing the error, so that when I wake up I have a few starting points. First thing to check is, of course the file permissions - that's a no brainer :rolleyes:

Danke.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

Check to see if any errors occur in the cPanel error log during the subdomain creation. The cPanel error log is located at:

Code:
/usr/local/cpanel/logs/error_log
Also, try rebuilding the Apache configuration file via:

Code:
# /scripts/rebuildhttpdconf
Thank you.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Before rebuilding httpd.conf using that command, please make a backup of that file:

Code:
cp /usr/local/apache/conf/httpd.conf /usr/local/apache/conf/httpd.conf.bak120525
If rebuilding with "/scripts/rebuildhttpdconf" does work, please ensure to then restart Apache for the changes to take effect:

Code:
/etc/init.d/httpd restart
If you receive any errors on trying to rebuild or restart Apache, please post those errors here.

Thanks!