How to move customer's stuff from root cPanel account into their own?
OK, many years ago, I remember there was a feature in WHM to "cut out" a domain from an account and make its own cPanel account with it. The icon for this was scissors, I believe.
Anyway, this was a long time ago when WHM was easy to use and had easy to remember, colorful icons, but today, in 2024, I am not sure if/where this feature is and I need to move a customer's stuff from my root account into its own independent cPanel account for obvious reasons. This should have been done like 10 years ago, but this week is the week.
Any idea how to gracefully do that without losing emails or causing too much down time?
Things to move from my root account into a single, independent cPanel account are:
1) Their domain name
2) One subdomain to their domain name
3) Four very large (+20GB) IMAP email inboxes
4) PHP website
5) MySQL database tied to the PHP website
6) One FTP account which username currently ends with @our-root-cpanel-account.com (this is going to be an issue, I think)
-
Hey hey! I think you're looking for this guy:
https://docs.cpanel.net/whm/transfers/convert-addon-domain-to-account/
Is that what you want to do?
0 -
Yes, but I'm afraid of it not doing all the operations above and/or not doing them correctly. Are you sure that it will do all I listed above? I'm particularly confused by this since we want to keep the subdomain and the website that it's tied to: "You must delete the subdomains of the addon domain before you convert it to a cPanel account. If you do not perform this action, the conversion process will fail."
EDIT: Oh shoot, I think there will be an issue with the SSL cert also after the account conversion.
0 -
It doesn't have the ability to do the subdomains, true. There is always a more manual process as outlined at https://docs.hostdime.com/hd/domain/transfer-an-addon-domain-to-its-own-cpanel-account although that isn't a guide we created.
0 -
I was expecting not to have to do that manually since I'm paying for WHM and it was seemingly capable of automating it, yet it does not fully do it. I would have thought that by 2024, it would be more advanced than that.
If I delete the subdomain, will WHM still copy the website files (subdomain's home dir) that it was tied to or will those files be left behind?
0 -
If there is a subdomain of an addon domain created, it will get its own document root, which will typically be /home/username/sub.addon.dom. I did the following to test this:
-created addonmove.com on my main account
-created sub.addonmove.com
-placed files in both addonmove.com and sub.addonmove.com
-deleted the subdomain through cPanel. NOTE - we say this when you delete the subdomain inside the cPanel interface:Warning: If you remove the “sub.addonmove.com” domain, it will permanently delete the domain from your account. You cannot undo this action. This will not remove “sub.addonmove.com”’s document root (/home/hattmonk/sub.addonmove.com).
-logged into WHM and went to Convert Addon Domain to Account
-chose addondomain.com from the list
-clicked the "start conversion" button
-visited WHM >> List Accounts to confirm the domain now had its own account, which it did
-I confirmed it did NOT move the subdomain data, so that subdomain would need to be recreated under the new account and the data moved manually.0 -
Alright, so I will have to postpone this account conversion to next week then, because at this point, there is too much of a risk of causing significant downtime by not being prepared enough with all the manual operations that I need to do in order for the conversion to be done in full. It's a mixture of WHM automation and manual commands/operations. I guess there will be file permissions to fix and the SSL cert recreation also involved at the end of the process. The amount of DATA to move is in the 20-ish gigabytes.
I would rather have all the email inboxes moved and working as fast as possible to make absolutely sure that there is no lost emails, even if the downtime involves the website not working for a few minutes. So the way I see it is that I will have to begin with the WHM automated tool (after having deleted the subdomain) and then once it has finished moving all the emails, etc... I will then manually do the subdomain and fix other broken stuff.
0 -
Hopefully over time we get this area further developed. I know it days say the feature is under development still, so I would guess it gets improved over time.
0 -
* Perpetual development where absolutely nothing gets changed in years. It's like RoundCube that has been a thing for 16 years and yet most of the french translations are complete nonsense that even Google Translate would get right. I really do feel like I'm the only person on Earth using it.
0
Please sign in to leave a comment.
Comments
8 comments