How to Add an Addon Domain in cPanel
In this article
Adding an addon domain in cPanel lets you host a second, separate website on the same hosting account. This is useful if you want to run a personal blog, a client site, or a side project without buying another hosting plan. Before you start, make sure you own the domain name you want to add and that it is registered with a domain registrar. You do not need to change its DNS settings yet — cPanel will guide you through that after the addon domain is created.
What You'll Need
- Access to your cPanel account (usually via
yourdomain.com/cpanelor a link from your hosting provider). - A registered domain name that you control (e.g.,
example.com). - Your domain's DNS management access (to point the domain to your server later).
Step-by-Step
- Log into cPanel. Open your browser, go to your cPanel login URL, and enter your username and password.
- Find the “Domains” section. On the cPanel home page, look for the “Domains” area. Click Addon Domains. (In some themes, it may be under “Domains” → “Addon Domains”.)
- Enter your new domain. In the “New Domain Name” field, type the full domain, e.g.,
example.com. Do not includehttp://orwww. - Set the subdomain and document root. cPanel will automatically fill in “Subdomain” (e.g.,
example) and “Document Root” (e.g.,public_html/example.com). You can change these, but it's usually best to leave them as is. The document root is the folder where your new site's files will live. - Create the addon domain. Click the Add Domain button. cPanel will create the directory and add the necessary configuration.
- Upload your website files. Use the File Manager in cPanel or an FTP client to upload your site's files into the document root folder you just created (e.g.,
public_html/example.com). - Point your domain to your server. Go to your domain registrar's DNS settings and create an A record pointing
@(or the root domain) to your server's IP address. Also create a CNAME record forwwwpointing to@(or to your domain). If you are unsure of your server's IP, check the “General Information” section in cPanel or ask your hosting provider. - Wait for DNS propagation. DNS changes can take a few hours to 48 hours to spread. After that, your addon domain should load your new site.
Common Mistakes
- Using an existing domain. You cannot add a domain that is already set up as a main domain, a parked domain, or an addon domain in the same cPanel account.
- Forgetting to upload files. Adding the domain only creates the folder and config; you still need to put your website files in that folder.
- Incorrect DNS records. If you point the domain to the wrong IP or forget to add the A record, the site won't load.
- Changing the document root to a non-existent path. If you type a custom document root that doesn't exist, cPanel may create it, but it's easy to mistype and end up with files in the wrong place.
- Not waiting for propagation. If you test immediately after changing DNS, you may still see the old site or an error. Wait at least a few hours.
Tips
- Use a subdirectory like
public_html/example.comto keep your addon site separate from your main site. This makes backups and management easier. - If you plan to have multiple addon domains, create a clear naming convention for folders (e.g.,
public_html/example.comvs.public_html/example.net). - Before adding the domain, make sure your hosting plan allows addon domains. Some budget plans limit the number.
- If you use SSL, you'll need to install a certificate for the addon domain separately. Many hosts offer free AutoSSL via cPanel — check the “SSL/TLS Status” section after adding the domain.
- Keep your domain registrar and hosting provider accounts separate and secure. Use strong passwords and two-factor authentication where available.
Troubleshooting
The addon domain shows a “404 Not Found” error. This usually means the document root is empty or the files are not in the correct folder. Check that you uploaded your site files to the exact document root path you set (e.g., public_html/example.com). Also ensure the index file (like index.php or index.html) is present.
The domain loads but shows the main site instead of the new one. This can happen if the document root is set to public_html (the main site's folder) or if you accidentally added the domain as a parked domain. Remove the addon domain and re-add it with the correct document root.
DNS changes don't seem to work. First, verify the A record points to the correct IP. You can check your server's IP in cPanel under “General Information” or by looking at your main domain's DNS settings. Also, use a tool like nslookup or an online DNS checker to see if the record has propagated.
You get an error that the domain is already in use. This means the domain is already added as a main, parked, or addon domain in the same cPanel, or it is registered to another hosting account. If you recently deleted the domain from cPanel, wait a few minutes and try again.
SSL certificate not working for the addon domain. In cPanel, go to “SSL/TLS Status” and run AutoSSL for the domain. If AutoSSL is not available, you may need to purchase or install a certificate manually. Contact your host for assistance.
Frequently Asked Questions
Can I add an addon domain without owning it?
No, you must own the domain or have the legal right to use it. cPanel will not verify ownership, but the domain must be registered and you must be able to change its DNS records.
What is the difference between an addon domain and a parked domain?
An addon domain hosts a completely separate website with its own files and folder. A parked domain simply redirects to your main domain or shows the same content — it doesn't have its own separate site.
How many addon domains can I add?
It depends on your hosting plan. Some plans allow unlimited, while others have a limit (e.g., 5 or 10). Check your hosting provider's documentation or contact support.
Will adding an addon domain affect my main website?
No, as long as you use a separate document root. The addon domain runs independently. However, it does consume server resources (disk space, bandwidth, etc.) from your overall account.
Do I need to change nameservers for the addon domain?
No, you only need to create an A record pointing to your server's IP. If you change nameservers to your hosting provider's nameservers, that also works, but it's not required.
Can I remove an addon domain later?
Yes, you can remove it from the same “Addon Domains” section in cPanel. Removing the addon domain will not delete the files in the document root — you can delete those manually if you want.