Page 1 of 1

cPanel :: Move domains to separate accounts

Posted: Sun Nov 05, 2017 7:08 am
by ZappHost
Hello,

We're aware of the following method for moving a WordPress site to a new URL:

https://chriseggleston.com/how-to-migra ... tallatron/

However, our use case is a bit different:

We have a reseller with multiple domains (WordPress installations) hosted on their cPanel account. We would like to split those domains into separate cPanel accounts for better security and resource management, with minimal downtime, and our idea of doing so is along these lines:

Migration details:
- Both accounts on the same server
- Domain to move: domain.com
- Source user (reseller account): user1
- Target user (resold account): user2

Steps:
- Create a new cPanel account (user2) using a temporary domain name: 'domain-temp123.com'
- Sync all file/folder data from 'user1' to 'user2'
- Search and replace path references in the files on 'user2'
- Import the database without site/home URL changes
- Search and replace database path references
- Remove the addon domain entry from 'user1'
- Change the primary domain of 'user2' from 'domain-temp1.com' to 'domain.com'

Does Installatron support this type of local migration, or something similar? If the steps required can also be provided in command line examples that would be great so we can factor the process in our tools. Any suggestions are greatly welcomed, thank you!