Setting up a subdomain or addon domain in cPanel is something just about every website owner, blogger, or developer runs into at some point. Maybe you want to launch a new blog, test out some software, build a client portal, or just run a bunch of different sites from a single hosting account. Good news: cPanel makes it pretty painless—even if you’re new to all this.
Here’s how you do it, step by step. I’m keeping it straightforward and easy to follow.
First off, what’s cPanel?
It’s pretty much the go-to control panel for web hosting. You get a simple dashboard where you can manage domains, files, email, databases, security settings, you name it. Most shared and VPS hosting plans come with it, just because it works and people like it.
Subdomains vs. Addon Domains—What’s the Difference?
Before you dive in, you should know what you’re setting up.
A subdomain is like a mini-site or a separate section that lives under your main domain. You’ve probably seen stuff like blog.yourdomain.com or shop.yourdomain.com—those are subdomains. People use them for things like blogs, support centers, testing sites, or special apps.
An addon domain, on the other hand, is a whole different website that you host under the same cPanel account. So, your main domain might be yourdomain.com, and your addon domain could be anotherwebsite.com. Each gets its own folder and works like a standalone site.
Why bother with subdomains or addon domains? Well, maybe you want to host multiple sites without paying for extra hosting, set up a dev or staging area, separate your services, or just keep things organized. Lots of good reasons.
Alright, let’s get into the actual steps.
How to Add a Subdomain in cPanel
1. Log in to cPanel
Open your browser and head to your cPanel login. Usually, that’s yourdomain.com/cpanel, or you might have a direct link from your host, something like https://server-ip:2083. Pop in your username and password, and you’re in.
2. Find the “Domains” Section
Once you’re on the dashboard, look for “Domains.” Depending on your cPanel version, you might also see “Subdomains” or “Addon Domains,” but the newest versions roll it all into “Domains.” Click that.
3. Enter Your Subdomain Details
Hit the option to create a new domain or subdomain. Type the name you want—like “blog” if you’re making blog.yourdomain.com—and pick your main domain from the dropdown.
You’ll also see “Document Root.” This is just the folder where your subdomain’s files go. cPanel usually suggests something like /public_html/blog. You can leave it as is.
4. Click “Create”
Once everything looks right, click Create (or whatever the button says). cPanel handles the rest—sets up the subdomain, makes the folder, takes care of DNS. Easy.
5. Check for Confirmation
You’ll get a message saying your subdomain’s been created, along with the full address and the document root folder. That’s your green light.
6. Upload Your Files
To actually use the subdomain, you need to upload something to it. Open cPanel’s File Manager, or use FTP, or install something like WordPress—whatever works for you. Just make sure there’s an index.html or index.php in your subdomain’s folder.
7. Test it Out
Now, open your browser and go to your new subdomain (like https://blog.yourdomain.com). If DNS has finished updating and your files are there, it should load up just fine.
How to Add an Addon Domain (If You Want)
Adding an addon domain works almost the same way:
Go to Domains in cPanel.
Click “Create a New Domain.”
Enter the full domain (like example2.com).
Pick the document root.
Click Create.
You’ll need to make sure your new domain’s nameservers point to your host, but that’s it.
And that’s the whole process. Not too hard, right?