User Agents

Web browsers and everyday web tech, explained

How to Create an Addon Domain in cPanel

· 5 min read · Extensions

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Creating an addon domain in cPanel allows you to host multiple websites from a single hosting account, each with its own domain name and file directory. This is ideal for managing separate projects, client sites, or personal brands without needing additional hosting plans. The addon domain functions as an independent site, but it shares the resources of your primary hosting account. Before proceeding, ensure your hosting plan supports addon domains and that you own the domain you want to add.

What You'll Need

  • An active cPanel hosting account that supports addon domains
  • A domain name you own (registered through any registrar)
  • Access to the domain's DNS or domain management settings
  • Knowledge of the document root (directory) where the addon site will be stored

Step-by-Step

  1. Log in to your cPanel account. Access your hosting provider's website, navigate to the cPanel login page, and enter your username and password.
  2. Locate the "Domains" section. In cPanel, scroll or use the search bar to find the "Addon Domains" icon and click it.
  3. Enter the addon domain details. In the form, type the domain name you want to add (e.g., example.com) in the "New Domain Name" field.
  4. Check domain availability. cPanel will verify if the domain is already in use within your account. If not, it will auto-fill the "Subdomain" and "Document Root" fields.
  5. Customize the document root (optional). By default, cPanel suggests a folder like public_html/example.com. You can change this to a different directory name (e.g., public_html/site2), but avoid spaces or special characters.
  6. Set a password (if required). Some cPanel versions ask for a password to protect the domain. If prompted, create a strong password or leave it blank if protection isn't needed.
  7. Click "Add Domain". After filling in the fields, click the button to create the addon domain.
  8. Wait for confirmation. cPanel will display a success message once the domain is added. The domain now appears in your list of addon domains.
  9. Update the domain's DNS settings. If the domain is registered elsewhere, log in to your domain registrar and point the A record to your hosting server's IP address. Alternatively, set the nameservers to your host's nameservers.
  10. Upload website files. Use the File Manager or FTP to place your site's files in the document root directory specified earlier.
  11. Test the domain. Visit the addon domain in a web browser to confirm it loads correctly and displays your site.

Common Mistakes

  • Using a domain already in use: Trying to add a domain that's already configured as a primary, parked, or addon domain will fail. Remove it first if necessary.
  • Incorrect document root: Choosing a directory that already contains files may cause conflicts. Always use a clean or intended folder.
  • Forgetting DNS changes: The domain won't resolve to your site unless the A record or nameservers are updated at the registrar.
  • Typing errors in domain name: A single typo (e.g., exmaple.com) will create a broken domain. Double-check spelling before submitting.
  • Using restricted characters: Avoid underscores, spaces, or uppercase letters in the document root path. Stick to lowercase letters, hyphens, and numbers.

Tips

  • Use descriptive directory names: Instead of public_html/addon1, use public_html/blog-site for clarity.
  • Keep backups: Before making changes, back up your public_html folder to avoid accidental data loss.
  • Check hosting limits: Some plans limit the number of addon domains. Verify your package allows for the number you need.
  • Use subdomains for testing: If unsure, test your site on a subdomain (e.g., test.yourmaindomain.com) before pointing the live domain.
  • Monitor resource usage: Hosting multiple sites on one account can increase CPU or memory usage. Watch your account's resource stats in cPanel.

Troubleshooting

If your addon domain isn't working, follow these steps:

  • Domain not loading: Verify the A record points to your server IP. Use tools like ping or online DNS checkers to confirm propagation.
  • Error 404: Check that files are uploaded to the correct document root. Ensure index.html or index.php exists in the folder.
  • Shows main site content: This often means the domain is not properly linked. Recheck the addon domain setup in cPanel and ensure the document root is correct.
  • cPanel error during creation: If you see "Domain already exists," remove any associated subdomains or parked domains first.
  • SSL not working: After setup, install an SSL certificate via the "SSL/TLS" section in cPanel. Many hosts offer free Let's Encrypt certificates.
  • Propagation delay: DNS changes can take up to 48 hours. Wait and recheck later if the site doesn’t appear immediately.

Frequently Asked Questions

Can I have multiple addon domains on one cPanel account?

Yes, if your hosting plan supports it. Many shared hosting plans allow multiple addon domains, but check your provider's limits.

Do I need to register the domain before adding it in cPanel?

Yes, you must own the domain. cPanel does not register domains; it only configures hosting for domains you already control.

Can I remove an addon domain later?

Yes. In the Addon Domains section, use the "Remove" option. This deletes the domain's configuration but not the files unless you choose to delete them.

Is an addon domain the same as a subdomain?

No. An addon domain acts as a separate website with its own domain (e.g., site2.com), while a subdomain is part of your main domain (e.g., blog.yoursite.com).

Will my addon domain share email accounts with the main domain?

No. Email accounts are domain-specific. You’ll need to create separate email addresses for the addon domain in cPanel’s Email section.

Does creating an addon domain cost extra?

cPanel itself doesn’t charge, but your hosting provider may limit addon domains by plan. Check your hosting package for inclusions or fees.