Getting my old cPanel accounts setup back after updating OS
Hi, I'm running a Linode (VPS) and have a bunch of cPanel accounts that I manage through the root WHM, it's been a few years since I updated the OS (CentOS 5.5!) and basically everything was getting EOL'd and nothing could get updated, so I updated it to Ubuntu 22. Of course I backed up all the folders in /home which included all the cpanel accounts, and put them back in /home after the OS update. I installed cPanel/WHM on the fresh Ubuntu setup and was able to get in, but not sure how I get all my old accounts to show up again, the WHM setup is completely clean and new and there are no cPanel accounts there. What should I be doing here?
Thanks!
-
Hey there! Unfortunately that was the wrong way to try and backup and restore accounts. You'll likely need to perform a large amount of manual work to restore as much data as possible.
Easy option - do you still have access to the old machine? If so, make a full cPanel backup of each account, move that to a new server (completely getting rid of the server you've already created) and restore them.
Hard option - You'll need to move all your data out of /home to some other area of the server. It doesn't really matter where, but anywhere except /home. Manually create each cPanel account and email address, and then manually copy the data into the correct directories and get things working as best you can.
You may find data in the following guide helpful when moving the files if you need to resort to the manual method:
1 -
OK, I took the easy option, thanks for the detailed answer! When I added my first account back, everything seemed to work ok, but then not all accounts are working now...
Some do work (like REDACTED) but some don't load and just give a 500 error (like REDACTED) and one gives a wordpress database connection error (like REDACTED)
Of course all websites worked perfectly well before the migration. Do you have any idea what could be the issue?0 -
I updated your post as we can't share domain names on the Forum.
I'm glad to hear that most things are working - coming from such an old system I would expect there to be some things that need a manual adjustment. The only good answer to that will be to check the logs for each domain and troubleshoot each one, as there is unlikely to be a single cause causing issues with all the sites (unless they were all on an ancient PHP version and that is the single point of failure).
0
Please sign in to leave a comment.
Comments
3 comments