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:

  • I created a backup of “newdomain.com” (The domain he actually wants to set as main domain).
  • Terminated that account “newdomain.com” (To avoid conflict when modifying the existing domain with new).
  • 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.
  • Replaced the “public_html” contents with the data from the backup I created.
  • Also, replaced the “email” folders with new.
  • 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…!!

How to give access only to a folder inside s3 bucket for an AWS IAM user?

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

Post navigation

Arunlal A

Senior System Developer at Zeta. Linux lover. Traveller. Let's connect! Whether you're a seasoned DevOps pro or just starting your journey, I'm always eager to engage with like-minded individuals. Follow my blog for regular updates, connect on social media, and let's embark on this DevOps adventure together! Happy coding and deploying!

4 thoughts on “How to change main domain of a cPanel reseller account with an existing domain name?

Leave a Reply

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