How to Create an Addon Domain in cPanel
Learn how to create an addon domain in cPanel to host multiple websites. This guide walks you through the steps to add a new, separate domain.
Introduction
An addon domain is a powerful cPanel feature that allows you to host a completely separate website with its own unique domain name, all from within your single cPanel account. For example, if your main domain is example.com, you can add my-new-site.com as an addon domain. To your visitors, it will look like a completely independent website. cPanel handles this by creating a new folder in your account for the new site’s files. This guide will show you exactly how to create an addon domain in cPanel.
When you use addon domains, you are hosting multiple websites under a single cPanel user. You should be aware of two main risks:
- Cross-Site Contamination: Because all your sites share the same file system, if one site is compromised (for example, through a vulnerable plugin), the attacker may be able to access, read, or infect all other sites in that same cPanel account.
- Resource Contention: All addon domains share the same pool of resources (like memory and CPU). A sudden traffic spike or a script error on one site can slow down or crash all the other sites in your account.
For the best security and stability, we strongly recommend creating a separate cPanel account for each of your primary domains.
Prerequisites
- A Linux server with the WHM control panel installed.
- WHM or cPanel credentials.
Step-by-step Instructions
- Log Into cPanel on the account to add the domain on.
- Click Domains under the Domain section.
- Click the Create A New Domain button.
- Enter the domain name to add in the Domain text box.
- Deselect the “Share document root (/home/username/public_html) with “domain.tld”.” option.
- Enter the directory where you want the files for this domain to exist.
- Click the Submit button.