Merge Two Separate cPanel Accounts Into One

Janny

Member
Jun 30, 2016
11
0
1
cPanel Access Level
Root Administrator
Hello,

I have two different domains for webs hosting and emails hosting in the same cpanel. before I created two different accounts to manage each hosting. How can I create one account to manage these two domains? If I want to use add on domain, Please help provide guideline for migration.

Thanks you very much for your reply.
 

Rob Golding

Registered
Jul 6, 2016
3
0
51
London, UK
cPanel Access Level
DataCenter Provider
Easy:
* Use WHM to change the domain on 1 of the accounts to something.else
* Use Cpanel to "addon" the domain to the other account
* Use SSH to move all the files etc over and change the ownership
* Delete the now defunct something.else account
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463

albere

Registered
Sep 21, 2022
1
0
1
Scotland
cPanel Access Level
Reseller Owner
If this helps anyone, this is what I had to do to merge one cPanel account into another for a customer with a WordPress site and email hosting:

1. manually backup db, files, email
2. alter original domain in orig cpanel e.g. domain.com to domain2.com (not the account name, the domain in modify account in WHM)
3. tweak settings - allow domains in other DNS
4. create new domain in destination cpanel acc (make sure select new root folder for files)
5. upload files + expand into this folder
6. create new database in destination cpanel with new password, dbname and username
7. fix SQL file db name in backup to new db name
8. import data in phpMyAdmin
9. fix /home/bap/public_html/craigardlodge.com/wp-config.php
10. fix .user.ini
11. fix SSL in cPanel (run AutoSSL)
12. create email accounts (may have to modify cpanel acc first to allow more email); send email to alternative email acc with new password
13. upload and expand backup into ../mail
14. test email in roundcube
15. delete old cPanel account
16. remove old SSL manually in WHM
17. Check it all works!

I can see why it might not be easy to automate this, but it would have saved an hour. Only 9 more accounts to go!