SOLVED CPANEL-38651 - Cpanel transferred from home2 to home directory from another server

howardfmcw

Active Member
Dec 26, 2019
36
4
8
UK
cPanel Access Level
Root Administrator
i have transferred cPanel's full backup from a hosting which shows Home2/username but where i transferred that shows /home/username so my site is not connecting and not working. can anyone tell me how to move from directory home2 to home? i have root access of /home/username server but would prefer WHM GUI guide as am not professional in commands.

Thanks
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,496
1,009
313
cPanel Access Level
Root Administrator
Hey there! When restoring a site from a backup, the home directory location normally should not matter. The only time that would be an issue is if there are tools that are hard-coded to use the /home2 path.

Can you let me know what errors you're seeing that indicate the issue is related to the home directory? Once I know that, I can get you better details on how to proceed.
 
  • Like
Reactions: howardfmcw

cPAdminsMichael

Well-Known Member
Dec 19, 2016
182
65
103
Denmark
cPanel Access Level
Root Administrator
This sounds more as you have an absolute path somewhere in your website files that you'd need to change.
Maybe search your web files for .php files with "home2" inside and replace those with "home"?


@cPRex was faster :) :)
 
  • Like
Reactions: howardfmcw

howardfmcw

Active Member
Dec 26, 2019
36
4
8
UK
cPanel Access Level
Root Administrator
Hey there! When restoring a site from a backup, the home directory location normally should not matter. The only time that would be an issue is if there are tools that are hard-coded to use the /home2 path.

Can you let me know what errors you're seeing that indicate the issue is related to the home directory? Once I know that, I can get you better details on how to proceed.

look, i have took full backup and uploaded to transfer tool in WHM backup restore... it was successfully restored. but site was not working and still not working, then i check the files but when i login to new cpanel and click file manager it goes to home2/username which is incorrect because all my cpanels use /home only.

now i feel the issue with site is not working is home directory location. it should work and show me files when we click on file manager as for every other cpanel does, but only this cpanel goes to invalid directory home2/username....

Also the files are available when i manually click public_html under file manager... Hope you understand.
 

howardfmcw

Active Member
Dec 26, 2019
36
4
8
UK
cPanel Access Level
Root Administrator
This sounds more as you have an absolute path somewhere in your website files that you'd need to change.
Maybe search your web files for .php files with "home2" inside and replace those with "home"?


@cPRex was faster :) :)

site is wordpress based, tried to find if is there any directory mentioned in files but not getting. it seems whm/cpanel settings need to be adjusted.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,496
1,009
313
cPanel Access Level
Root Administrator
Our team was able to find an issue with the /home/username/.cpanel/nvdata/defaultdir file that is not getting updated as part of a restore. We've made the following article on this here:


and our team is working on that issue now. I'll be sure to post here once it is resolved.