Hi,
I'm looking for some advice/help in migrating websites across from one cPanel account to another cPanel account...
# Scenario 1:
- We have a cPanel account (exampleaccount) with 3 websites on it (each website is in a subfolder)
- We have a cPanel account (newaccount) where we want to migrate one of the above websites across to.
- It would need /public_html/website/ transfered from one account to another which I assume I can do with: mv /home/exampleaccount/public_html/newwebsite/ /home/newaccount/public_html/newwebsite
- How would I migrate the mysql database across?
- How would I migrate the domain across? Would i have to quickly delete the domain and re-add it on the newaccount?
# Scenario 2
- We have a cPanel account (themainsite) with 4 websites on it (each website is in a subfolder)
- We want to setup a cPanel account, however the domain is already in use under the cPanel account: themainsite so when we try and setup an account it errors out because it's already in use.
How do we migrate the domain, database & files across?
In both scenarios we would want to update the database's name / username to match the new account's username and then we would manually update the config.php
It would be great if we could do all of this by SSH / command line to make it as fast as possible to setup accounts, delete domains, add the domain to the new account... etc
Anyone have any idea
I'm looking for some advice/help in migrating websites across from one cPanel account to another cPanel account...
# Scenario 1:
- We have a cPanel account (exampleaccount) with 3 websites on it (each website is in a subfolder)
- We have a cPanel account (newaccount) where we want to migrate one of the above websites across to.
- It would need /public_html/website/ transfered from one account to another which I assume I can do with: mv /home/exampleaccount/public_html/newwebsite/ /home/newaccount/public_html/newwebsite
- How would I migrate the mysql database across?
- How would I migrate the domain across? Would i have to quickly delete the domain and re-add it on the newaccount?
# Scenario 2
- We have a cPanel account (themainsite) with 4 websites on it (each website is in a subfolder)
- We want to setup a cPanel account, however the domain is already in use under the cPanel account: themainsite so when we try and setup an account it errors out because it's already in use.
How do we migrate the domain, database & files across?
In both scenarios we would want to update the database's name / username to match the new account's username and then we would manually update the config.php
It would be great if we could do all of this by SSH / command line to make it as fast as possible to setup accounts, delete domains, add the domain to the new account... etc
Anyone have any idea