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.

migrated to new server

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

  1. adam b

    adam b Registered

    Joined:
    Nov 5, 2015
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Ottawa Canada
    cPanel Access Level:
    Website Owner
    Hello,

    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: website1.com and website2.com.

    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 website1.com and website2.com.

    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 website1.com 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 website1.com should be pointed to website1's content folder where it's index.php is located?
     
  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 :)

    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.
     
Loading...

Share This Page