Skip to main content

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

Comments

18 comments

  • cPRex Jurassic Moderator
    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.
    0
  • cPAdminsMichael
    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 :) :)
    0
  • cPRex Jurassic Moderator
    @cPAdminsMichael - I like when we say the same thing!
    0
  • howardfmcw
    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.
    0
  • howardfmcw
    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.
    0
  • cPRex Jurassic Moderator
    Thanks for the additional details. If you check WHM >> List Accounts does it show the partition as /home for that account? If not, you'll want to follow the steps here to change that on the system: How to change the document root for a cPanel account
    0
  • howardfmcw
    Thanks for the additional details. If you check WHM >> List Accounts does it show the partition as /home for that account? If not, you'll want to follow the steps here to change that on the system:
    0
  • cPRex Jurassic Moderator
    It's possible the errors are related - if you want to have us check you're always welcome to submit a ticket to our team.
    0
  • howardfmcw
    It's possible the errors are related - if you want to have us check you're always welcome to submit a ticket to our team.

    sure, am opening ticket with you :)
    0
  • cPRex Jurassic Moderator
    Please post the ticket number here once you have it so I can follow along.
    0
  • howardfmcw
    Please post the ticket number here once you have it so I can follow along.

    ticket submitted. Id #94364740
    0
  • cPRex Jurassic Moderator
    Thanks for that - I'm following along on my end now as well.
    0
  • cPRex Jurassic Moderator
    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:
    0
  • cPRex Jurassic Moderator
    Update - this is scheduled to be fixed in version 100 when that is released.
    0
  • bejbi
    Probably it was not full corrected, becouse I have the same problem. Transfer is from server with /home2 partition to new one with /home partition. I receive also on WordPress site error 500 with error: [08-Mar-2023 22:17:35 UTC] PHP Fatal error: require(): Failed opening required 'ABSPATHwp-includes/load.php' (include_path='.:/opt/cpanel/ea-php56/root/usr/share/pear') in /home2/xxxxxxxx/public_html/wp-settings.php on line 19 In any WordPress file there is no entry about home2 And there is also no file: /home/username/.cpanel/nvdata/defaultdir Is this file moved to another place ? :wq
    0
  • cPRex Jurassic Moderator
    @bejbi - this issue is about 18 months old now, so if you're seeing similar behavior it would need new work from our developers. If you have a system where you can reproduce this issue, can you create a ticket with our team so we can test this?
    0
  • bejbi
    Thank you, I created ticket already: #94768155
    0
  • cPRex Jurassic Moderator
    It looks like our team was able to help get suexec installed and running and now the system is not having any issues.
    0

Please sign in to leave a comment.