Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

migrated to new server

Discussion in 'General Discussion' started by adam b, Nov 5, 2015.

  1. adam b

    adam b Registered

    Nov 5, 2015
    Likes Received:
    Trophy Points:
    Ottawa Canada
    cPanel Access Level:
    Website Owner

    I am new here to this community and to Cpanel.

    I have taken on a volunteering project for a friend. His host had migrated to new servers and this required my friend to move all of his old web content to the new server. Now, he had 2 websites. Website 1, and Website 2. In the original setup, both websites had their own folder in the root directory: and

    After moving his content to the new server space he had to create an addon domain. He did this in Cpanel. So he moved everything over, created the addon domain for website #2.

    Website #1 however, will not load!

    When browsing to website #1 he is taken to an index page that shows folder indexes of and

    If he browses to website #2 then the webpage appears normally.

    Both websites have been designed with PHP and I suspect because of a line describing "DOCUMENT_ROOT", website#1 is not loading because the root folder for is the parent of both websites.

    When trying to change the .htaccess in this root directory I am able to redirect the visitory to website1's index.php, but the site does not load properly, again, because I suspect the DOCUMENT_ROOT is incorrect.

    To make it really easy, and maybe somewhat insane, my friend's content for website1 and website 2 is 1:1. same folder structure, same content.

    Any ideas where to go from here? Does the host need to change the root directory as should be pointed to website1's content folder where it's index.php is located?
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    Yes, please contact your hosting provider and ask them to update the document root for the first domain name to the directory of your choosing. You can't change this value without root access to the server, as it requires updating data in /var/cpanel/userdata/username/.

    Thank you.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice