Here we cover the process for when you need to move an Addon Domain or Subdomain into a separate cPanel account of its own.
It is best practice to separate websites into individual cPanel accounts. This makes it easier to keep the various sites organized and provides a different level of access to each individual site.
Please keep in mind that the account needs to have enough available cPanel licenses to cover the total number of cPanel accounts that are being created.
Related Articles
Find Database Name of WordPress Site
Change Joomla Database Settings
Primary Domain Change via AMP
Primary Domain Change via WHM
Convert Addon Domain to cPanel Account - Tool in Root WHM
Convert Alias to Addon Domain
Move Addon Domain
IMPORTANT: The task being performed can only be completed on Reseller, VPS, and Dedicated servers.
NOTE: This method covers how to manually move the files and database to a separate cPanel account. It is possible to have this done automatically via Root WHM as well. The automatic process requires a VPS+ hosting plan.
CAUTION: It is highly recommended to always make a backup of the account before making any changes. This way there is a backup to restore from should anything go wrong.
NOTE: In the examples below, the following details will be used:
Original cPanel account: userna1
New cPanel account: userna2
Domains: PrimaryDomain.com, AddonDomain.com
Emails: user1@PrimaryDomain.com, user1@AddonDomain.com
Databases: userna1_Primary, userna1_Addon
REPLACE: Update the details above with the appropriate cPanel & website information for the account. So, userna1 would be changed to the actual cPanel username, etc.
- Obtain the files for AddonDomain.com, from the original cPanel account, userna1
- The website's files are located in the Document Root of AddonDomain.com
- Obtain the AddonDomain.com folder from within the etc and mail folders on the server
- The two methods to obtain the files are as follows
- Locate and obtain the database for the website
- Which database to export can be confirmed by looking into the configuration of the website's Content Management System, or CMS software
- The three methods for obtaining the database are as follows
- Command-line, then downloading it via FTP or the cPanel File Manager
- Via phpMyAdmin for mySQL databases or phpPgAdmin for PostgreSQL databases
- Database backup from cPanel Backup
- Log into WHM
-
Create a new cPanel account with username userna2 and domain AddonDomain-temp.com
IMPORTANT: Access to WHM is required in order to create the cPanel account(s).
TIP: Append -temp into AddonDomain.com to allow for testing before taking the current live site down from the original cPanel. - Upload the files for AddonDomain.com, to the new cPanel account, userna2
- The website's files would need to be uploaded to the public_html folder
- The AddonDomain.com folders from the etc and mail folders from the original cPanel need to be uploaded to the respective etc and mail folders in the new cPanel
- The two methods to upload the files are as follows
- Upload the database for AddonDomain.com
- Create the new MySQL database and database user, or new PostgreSQL database in the new cPanel
- Import the MySQL database in phpMyAdmin or the PostgreSQL database in phpPgAdmin
- Update database configuration for the CMS used with the new database name, username, and password
- Remove the Addon domain AddonDomain.com from the original cPanel, userna1
- Change the domain for the new cPanel account from AddonDomain-temp.com to AddonDomain.com
Comments
0 comments
Article is closed for comments.