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.

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

Discussion in 'General Discussion' started by Bezz, May 17, 2012.

  1. Bezz

    Bezz Registered

    Joined:
    May 17, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    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.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    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!
     
Loading...

Share This Page