Staging for Merge cPanel Accounts Guide
A cPanel Guide to Merging Accounts(TECH-230):
This guide aims to provide general information and steps to merging two cPanel accounts. This guide assumes no conflicting data(i.e. a domain already residing in both accounts). This guide will use a standard cPanel backup as the source for the merging of accounts as it does not require root access. Throughout this guide, the account referred to as the "source" will be the cPanel account we are moving data from, and the "destination" account will be the cPanel account we are moving data into.
Contents:
0) Setup
1) Domains
a) Creating the domains(main, parked/alias, and subdomains)
b) Migrating document root files and correcting ownerships
c) SSL Certificates
d) DNS
e) Domain Logs
f) Web Analytics
2) MySQL
a) Databases
b) Database Users
c) Database Privileges
3) Email
a) Email Accounts and Forwarders
b) AutoResponders
c) Email Filters
d) SpamAssassin
4) Accounts
a) FTP
b) Subaccounts
0) Setup
Extract your backup. In my case, the source cPanel account name was "kramer":
1) Domains 1/a) Merging domains: We'll begin by creating the VirtualHosts or domains which the website data will reside. You'll find the source account's domain information in the extracted backup at 'userdata/main':
We'll create new addon domains for 'main_domain' and 'addon_domains' in our destination account('newman' in my case). I'll be making use of the cPanel API2 AddonDomain::addaddondomain function to create these on the command line, but you may also use the cPanel > Addon Domains interface.
*** above is inaccurate *** We'll now proceed with setting up the subdomain(s):
2) MySQL 1/a) MySQL databases You can find your MySQL database dumps in the 'mysql/' directory of your extracted backup. Create your database first, then use these dumps to import your data:
3) Email
$ tar -zxvf cpmove-kramer.tar.gz1) Domains 1/a) Merging domains: We'll begin by creating the VirtualHosts or domains which the website data will reside. You'll find the source account's domain information in the extracted backup at 'userdata/main':
# cat userdata/main
---
addon_domains:
thekramer.com: thekramer.kramer.com
main_domain: kramer.com
parked_domains:
- cosmokramer.com
sub_domains:
- cosmo.kramer.com
- thekramer.kramer.com
We'll create new addon domains for 'main_domain' and 'addon_domains' in our destination account('newman' in my case). I'll be making use of the cPanel API2 AddonDomain::addaddondomain function to create these on the command line, but you may also use the cPanel > Addon Domains interface.
# cpapi2 --user=newman Park park domain=cosmokramer.com topdomain=kramer
*** above is inaccurate *** We'll now proceed with setting up the subdomain(s):
# rsync -a homedir/tmp/awstats/ /home/newman/tmp/awstats
# chown newman.newman /home/newman/tmp/awstats
2) MySQL 1/a) MySQL databases You can find your MySQL database dumps in the 'mysql/' directory of your extracted backup. Create your database first, then use these dumps to import your data:
# uapi --user=newman Mysql set_privileges_on_database user=kramer_dbuser database=kramer_dbuser privileges=ALL
3) Email
Please sign in to leave a comment.
Comments
0 comments