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.

DocumentRoot for every site changed?

Discussion in 'General Discussion' started by liamcyrus, Jul 23, 2013.

  1. liamcyrus

    liamcyrus Registered

    Joined:
    Jun 20, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    I ran the IP migration manager, ran an update on cPanel (currently at WHM 11.38.1 (build 13)) and then ran EasyApache on a basic build with no front page, and IonCube, mod_security, and GD enabled. Then when I visit any website I'm hosting, I get prompted with the lovely WHM default website page. I looked into my httpd.conf file and found the issue: somehow, the DocumentRoot for every single virtual host had been changed to "/usr/local/apache/htdocs". It SHOULD be /home/%username%. Any idea on why this switched and how to fix it without manually updating a thousand entries?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can try rebuilding the Apache configuration file via:

    Code:
    # /scripts/rebuildhttpdconf
    Check the cPanel userdata files if the issue continues. EX:

    Code:
    /var/cpanel/userdata/username/domain.com
    Are the document roots accurate in these files?

    Thank you.
     
  3. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    I think you should try to rebuild httpd conf file as I think this will fix your issue, also just FYI if made any changes in httpd.conf manually then do not forget to update the distiller entries.
     
Loading...

Share This Page