This article explains how to change the domain name of an account on a Linux dedicated server with a cPanel/WHM license.
Scope: This procedure modifies the primary domain of an existing account. The cPanel user (username) does not change automatically.
Before changing the domain
- Confirm that the new domain is registered and available for use.
- Update the DNS records (A record or delegation) to point to your server.
- Prepare the email, SSL, and internal link changes that depend on the previous domain.
- Make a backup of the account before modifying critical data.
Important: Changing the domain does not automatically migrate SSL certificates or external configurations (Google Search Console, APIs, etc.). Review those services after the change.
Change the domain from WHM
- Log in to WHM with the
rootuser athttps://your-domain-or-ip:2087orhttps://your-domain-or-ip/whm. - Go to Account Functions → Modify an Account.
- Select the account by domain or by username and click Modify.
- In the Domain field, replace the current domain with the new name.
- Click Save to apply the change.
| Field / action | Detail |
|---|---|
| Domain | New primary domain, without www (e.g., newdomain.com). |
| Username | Remains the same; it is not necessary to modify it in this step. |
| Save | Confirms the change and updates the account configuration on the server. |
After the change
- Verify that the site loads with the new domain (HTTP and HTTPS).
- Reinstall or reissue the SSL certificate for the new domain.
- Review email accounts, redirects, and databases that reference the previous domain.
- In the account's cPanel, confirm that the DNS zone of the new domain is created correctly.
- Wait for DNS propagation if you just updated the records (it can take up to 24–48 hours).
Common issues
- The site does not open with the new domain: review the A record and DNS delegation to your server.
- SSL certificate error: the certificate is still issued for the previous domain; generate a new one.
- Email stops working: update MX, SPF records, and accounts configured with the old domain.
- WHM does not save the change: verify that the new domain is not already assigned to another account on the server.
If the change fails, the domain is duplicated in another account, or you need to migrate the entire site to a new account, open a ticket from the client portal or consult via the site's online chat.
