Skip to main content

Manually Splitting a cPanel Account into Two cPanel Accounts / A New Account

Comments

6 comments

  • cPAdminsMichael
    Hi RyanR, I think the easiest way is to use the "Convert Addon Domain to Account" feature in WHM to split up your accounts and then do a backup/restore of the database to the new account.
    0
  • RyanR
    Hi RyanR, I think the easiest way is to use the "Convert Addon Domain to Account" feature in WHM to split up your accounts and then do a backup/restore of the database to the new account.

    Thanks for that advice Michael. Does that migrate the files for that website though? > then do a backup/restore of the database to the new account. Is there no way to run a command to migrate it to a different account? Also it doesn't help with scenario 1 where i want to migrate a website from one cPanel account to another cPanel account.
    0
  • cPAdminsMichael
    Thanks for that advice Michael. Does that migrate the files for that website though? > then do a backup/restore of the database to the new account. Is there no way to run a command to migrate it to a different account? Also it doesn't help with scenario 1 where i want to migrate a website from one cPanel account to another cPanel account.

    Ahh... ok. A standard approach for both scenarios would be: - rsync the addon domain directory to the other cPanel account - delete addon domain and create the addon domain on the other account - Create database + database user on the new account - backup the database and restore to the new database (can be done through phpmyadmin) - Change database settings on the webapp (i.e. wp-config.php if a Wordpress site)
    0
  • cPanelLauren
    The convert addon domain to account feature includes the site data and the databases. I would suggest reading through the following: Convert cPanel Addon domain to Account | cPanel Blog
    0
  • RyanR
    The convert addon domain to account feature includes the site data and the databases. I would suggest reading through the following:
    0
  • cPanelLauren
    That works for scenario 2 but doesn't help for scenario 1 where we want to migrate an account/domain from one account to another...

    I'm not understanding how it wouldn't resolve Scenario 2, unless you mean that you're just trying to move the addon domain to a different account but not create its own account. In that case yes you'd have to move the site data manually and reassign ownership of the databases to the new cPanel user.
    0

Please sign in to leave a comment.