How to change main domain of a cPanel reseller account with an existing domain name?

Hey!! Here are some tips on cPanel reseller account modification. It’s quite simple if the new domain you wish to set as primary of your WHM re-seller is not under the same account. It can be simply managed from the “Modify an Account” section. You can simply modify the account information from this location. As it is a re-seller, you must do the following steps after modifying the account.

Make sure that;
>> You do not want the current domain and data. If you need it, please take backups.
>> Change reseller ownership of all accounts under that reseller to the new username.
>> Check resellers name-servers, if they are using their own.
>> Switch reseller priveliges to new user.
>> And so on.

Here I am listing some steps to changing the reseller main account that I have done few days ago for a client. His actual requirement is:

"Change the cPanel reseller account's main domain to an already existing domain under his reseller account"

Example:
He wants to set up “newdomain.com” (already existing under his re-seller account) as main domain for his re-seller account. Also, wanted to terminate the current main domain “currentdomain.com”.

Steps:

1, I created a backup of “newdomain.com” (The domain he actually wants to set as main domain).
2, Terminated that account “newdomain.com” (To avoid conflict when modifying the existing domain with new).
3, Modified the existing account with new domain name, I didn’t changed the $user name. The user name change will cause problem with all his accounts’ ownership and its little complex.
4, Replaced the “public_html” contents with the data from the backup I created.
5, Also, replaced the “email” folders with new.
6, As it was a WordPress site, created a database and restored it from the backup. (Need to edit the username details in database, makes sure that you have made the necessary changes in Site URL and home in your WordPress database).

That’s it…!!

Related posts:
1, Command line option to list suspended accounts
2, cPanel default open ports
3, How to check cPanel rpm works or not
4, How to install Security Advisor Addon on WHM/cPanel

Arunlal Ashok

Linux Server Administrator. I'm dealing with Linux servers since 2012. I started this blog to share and discuss my ideas with the world. Check My Profile!! in uPwork (oDesk) and let me know if you need any assistance. Thanks!!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *