---
title: "How do I merge multiple cPanel accounts into one"
description: "In this article we'll go over the basic process of taking multiple cPanel accounts, and merging them into one account. You can only have multiple cPanel accounts on a VPS or dedicated server plan, so..."
url: https://www.inmotionhosting.com/support/edu/cpanel/how-do-i-merge-multiple-cpanel-accounts-into-one/
date: 2012-11-13
modified: 2021-11-19
author: "InMotion Hosting Contributor"
categories: ["cPanel"]
type: post
lang: en
---

# How do I merge multiple cPanel accounts into one

In this article we’ll go over the basic process of taking multiple cPanel accounts, and merging them into one account. You can only have multiple cPanel accounts on a VPS or dedicated server plan, so if you’re looking to downgrade your account to a shared-hosting plan you would need to first consolidate your accounts down into one.

In our example below we have two cPanel accounts **userna1** with the domain **PrimaryDomain.com** and **userna2** with the domain **AddonDomain.com**. We’ll be merging the **AddonDomain.com** domain into the **userna1** account so that both domains can be accessed from the same cPanel account.

cPanel creation is no longer unlimited. Learn more about [cPanel Pricing Changes](https://www.inmotionhosting.com/support/edu/cpanel/cpanel-pricing-structure/) and [related FAQs]( https://www.inmotionhosting.com/support/edu/cpanel-edu/cpanel-pricing-changes-faq).

If you happen to have [root access](/support/server/ssh/root-access-faq/) on your server, you might be interested in our more advanced article on [merging multiple cPanel accounts into one account using SSH](/support/edu/cpanel/merge-multiple-cpanel-accounts-into-one-account-using-ssh/).

Our **AddonDomain.com** domain is a WordPress site so we’ll need to be sure we also grab the MySQL database so we can set it up under the **userna1** account.

**Warning:** merging cPanels containing WordPress sites can have unusual effects on WordPress site configuration. This is especially true of WordPress security plugins. [Consider temporarily deactivating your plugins](https://www.inmotionhosting.com/support/edu/wordpress/disable-wordpress-plugins/) while merging cPanels. After the merge, reactivate and reconfigure them to work correctly on the new cPanel account.

1. First grab all of the content for **AddonDomain.com** via [FTP](/support/website/ftp/getting-started-guide/) using the **userna2** username.
2. In this example we’re connected using FileZilla, with the server’s files on the right-hand side, and our local folders on the left. You’ll want to hold down **Ctrl** on your keyboard and then click on the **etc**, **mail**, and **public_html** directories to select them all, then drag them over to a new folder you’ve setup on your local computer.[![filezilla-drag-etc-mail-and-public-html](https://www.inmotionhosting.com/support/wp-content/uploads/2012/11/website_cpanel_cpanel-merge_filezilla-drag-etc-mail-and-public-html-1024x663.png)](/support/wp-content/uploads/2012/11/website_cpanel_cpanel-merge_filezilla-drag-etc-mail-and-public-html.png)    
3. Now we want to also generate a backup of our MySQL database that we need for the site, in order to do this you’ll want to [Login to your cPanel](/support/edu/cpanel/how-to-log-into-cpanel/).
4. Once logged in, navigate down to the **Files** section then click the **Backup** link.[![](https://www.inmotionhosting.com/support/wp-content/uploads/2012/11/cpanel_backups_cpanel-backups-paper-lantern.png)](/support/wp-content/uploads/2012/11/cpanel_backups_cpanel-backups-paper-lantern.png)    
5. Under the **Download a MySQL Database Backup** section, click on **userna2_wrdp1**.[![](https://www.inmotionhosting.com/support/wp-content/uploads/2012/11/cpanel_backups_download-database-backup.png)](/support/wp-content/uploads/2012/11/cpanel_backups_download-database-backup.png)    
6. Next you’ll want to l[og into WHM](/support/edu/whm/log-into-whm/) so that we can modify our **AddonDomain.com** site temporarily so that we can attach it to our other cPanel account.
7. In the top-left **Find** box type in **modify**, then click on **Modify an Account**.[![whm-click-on-modify-an-account](https://www.inmotionhosting.com/support/wp-content/uploads/2012/11/website_cpanel_cpanel-merge_whm-click-on-modify-an-account-1.png)](/support/wp-content/uploads/2012/11/website_cpanel_cpanel-merge_whm-click-on-modify-an-account-1.png)      
8. Select **AddonDomain.com**, then click on **Modify**.
9. In the **Primary Domain:** field add a **-temp.com** suffix to your domain, so in this case we use **AddonDomain-temp.com**. Then scroll to the bottom and click on **Save**.
10. Still in WHM in the top-left **Find** box type in **List**, and then click on **List Accounts**.
11. Now click on the cPanel icon for the **PrimaryDomain.com** account with the username **userna1**.[![whm-click-on-cpanel-icon-for-userna1](https://www.inmotionhosting.com/support/wp-content/uploads/2012/11/website_cpanel_cpanel-merge_whm-click-on-cpanel-icon-for-userna1-1.png)](/support/wp-content/uploads/2012/11/website_cpanel_cpanel-merge_whm-click-on-cpanel-icon-for-userna1-1.png)    
12. Under the **Domains** section, click on **Addon Domains**.[![cpanel-click-on-addon-domains](https://www.inmotionhosting.com/support/wp-content/uploads/2012/11/website_cpanel_cpanel-split_addon-domains-paper-lantern.png)](/support/wp-content/uploads/2012/11/website_cpanel_cpanel-split_addon-domains-paper-lantern.png)    
13. Now type in **AddonDomain.com** as the new domain name, and choose a FTP username and document root for the site as well then click on **Add Domain**.[![cpanel-create-addon-domain](https://www.inmotionhosting.com/support/wp-content/uploads/2012/11/website_cpanel_cpanel-merge_cpanel-create-addon-domain-1.png)](/support/wp-content/uploads/2012/11/website_cpanel_cpanel-merge_cpanel-create-addon-domain-1.png)    
14. Now that the domain has been added to our **userna1** account, you’ll want to connect via FTP again to that account. Then navigate to the **etc** directory in both window panes, and finally drag the **AddonDomain.com** directory from your local computer to the server’s **etc** directory.[![filezilla-drag-etc-from-local](https://www.inmotionhosting.com/support/wp-content/uploads/2012/11/website_cpanel_cpanel-merge_filezilla-drag-etc-from-local.png)](/support/wp-content/uploads/2012/11/website_cpanel_cpanel-merge_filezilla-drag-etc-from-local.png)     ** **
15. Next navigate to the **mail** folder in both window panes, and again drag the **AddonDomain.com** directory from the local computer side to the server side.[![filezilla-drag-mail-from-local](https://www.inmotionhosting.com/support/wp-content/uploads/2012/11/website_cpanel_cpanel-merge_filezilla-drag-mail-from-local.png)](/support/wp-content/uploads/2012/11/website_cpanel_cpanel-merge_filezilla-drag-mail-from-local.png)    
16. Finally navigate in both windows to the **public_html** directory, then on the server side navigate into the **AddonDomain.com** directory that we created when creating the addon domain. On your local computer side hit **Ctrl-A** to select all of the files, then drag them over into the remote side.[![filezilla-drag-public-html-from-local](https://www.inmotionhosting.com/support/wp-content/uploads/2012/11/website_cpanel_cpanel-merge_filezilla-drag-public-html-from-local.png)](/support/wp-content/uploads/2012/11/website_cpanel_cpanel-merge_filezilla-drag-public-html-from-local.png)    
17. Now that you have all of your website data loaded under the **userna1** cPanel account the next thing you need to do is restore your MySQL database that you backed up. To do this [login to your cPanel](/support/edu/cpanel/how-to-log-into-cpanel/) with the **userna1** username.
18. Under the **Databases** section click on **MySQL Database Wizard**.[![](https://www.inmotionhosting.com/support/wp-content/uploads/2012/11/cpanel_mysql-database-wizard-paper-lantern.png)](/support/wp-content/uploads/2012/11/cpanel_mysql-database-wizard-paper-lantern.png)    
19. Now in this case I already know the **userna1** user has one WordPress site and database already, so I’ll be naming my database **userna1_wrdp2**, then click on **Next Step**.
20. I’m also going to set my database username to **userna1_wrdp2**, give that user a password then click on **Create User**.
21. Finally on the last step of the database wizard, click on **ALL PRIVILEGES** to check everything, then click on **Next Step**.
22. Next we need to restore our database backup, so click on **Return Home** to get back to the cPanel home screen.
23. Back at the cPanel home screen, under **Databases**, click on **phpMyAdmin**.[![](https://www.inmotionhosting.com/support/wp-content/uploads/2012/11/cpanel_phpmyadmin-paper-lantern.png)](/support/wp-content/uploads/2012/11/cpanel_phpmyadmin-paper-lantern.png)    
24. In the left-hand menu, click on our **userna1_wrdp2** database.
25. Now at the top click on the **Import** tab.
26. Next click on **Choose File** to browse your local computer for the database backup we saved earlier, for our example it would be called **userna2_wrdp1.sql.gz**. Then click **Go**.
27. You should see the import was successful by the green status bar at the top stating the import successfully finished, and there should now be tables on the left-hand menu as well.
28. Now because we switched cPanel usernames from **userna2** to **userna1** we need to update any database configuration scripts to use this new user so when we git rid of the old one it still can function on its own.   Back in cPanel, under the **Files** section click on **File Manager**. [![](https://www.inmotionhosting.com/support/wp-content/uploads/2012/03/cpanel_file-manager-paper-lantern.png)](/support/wp-content/uploads/2012/03/cpanel_file-manager-paper-lantern.png)    
29. Navigate to the [document root](/support/website/where-to-upload-files/) for **AddonDomain.com**.
30. Right-click on the **wp-config.php** script then click on **Edit**, then in the **Text Editor** pop-up you can just click on **Edit** again.
31. For WordPress the database configuration lines look like the following:`/** The name of the database for WordPress */ define('DB_NAME', 'userna2_wrdp1'); /** MySQL database username */ define('DB_USER', 'userna2_wrdp1'); /** MySQL database password */ define('DB_PASSWORD', 'wordpress1');`   You’ll want to edit this with the new credentials you just created, so that it looks like: `/** The name of the database for WordPress */ define('DB_NAME', 'userna1_wrdp2'); /** MySQL database username */ define('DB_USER', 'userna1_wrdp2'); /** MySQL database password */ define('DB_PASSWORD', 'wordpress2');` After making your changes click on **Save Changes**.
32. Finally you can l[og into WHM](/support/edu/whm/log-into-whm/) once more to remove the olnel, ud standalone account.
33. In the top-left **Find** box, type in **terminate**, then click on **Terminate an Account**.[![whm-click-on-terminate-an-account](https://www.inmotionhosting.com/support/wp-content/uploads/2012/11/website_cpanel_cpanel-merge_whm-click-on-terminate-an-account-1.png)](/support/wp-content/uploads/2012/11/website_cpanel_cpanel-merge_whm-click-on-terminate-an-account-1.png)     ** **
34. Click on the **AddonDomain-temp.com** domain, then click on **Terminate** at the bottom of the page.

You should now have successfully merged your **AddonDomain.com** site from the **userna2** account into the **userna1** account. You can keep repeating this process to get multiple cPanel accounts merged down into one in case you wanted to manage them all from a single cPanel login, or you were looking at downgrading to a shared-hosting account.
