How to Create a Subdomain in cPanel (2026 Beginner’s Guide)
How to Create a Subdomain in cPanel (2026 Beginner’s Guide)
Creating a subdomain in cPanel is one of the easiest ways to organize your website. Whether you want to launch a blog, build a support center, create a test website, or install a separate WordPress site, a subdomain helps keep everything organized without buying another domain.
The good news is that creating a subdomain only takes a few minutes in cPanel.
In this guide, you’ll learn what a subdomain is, why it’s useful, how to create one step by step, common mistakes to avoid, and best practices for managing your subdomains.
What Is a Subdomain?
A subdomain is an additional part of your main domain name that creates a separate section of your website.
For example:
| Main Domain | Subdomain |
|---|---|
| example.com | blog.example.com |
| example.com | shop.example.com |
| example.com | support.example.com |
Think of your main website as a house.
Each room inside the house has a different purpose.
A subdomain works like another room where you can build a completely different website while still using the same main domain.
For example:
- blog.example.com for articles
- store.example.com for an online shop
- test.example.com for testing changes
- help.example.com for customer support
Why Is It Important?
Creating a subdomain offers many benefits.
You can:
- Keep different website sections organized
- Run multiple WordPress websites
- Create development or staging sites
- Build separate websites for different languages
- Host customer portals
- Create knowledge bases
- Improve website management
A subdomain looks professional and is easier to remember than a long website address.
Step-by-Step Guide
Step 1: Log in to cPanel
What to do
Log in to your hosting account and open your cPanel dashboard.
Why
This is where all website management tools are located.
What you’ll see
The cPanel home page with different management sections.
Beginner Tip
Use the search bar at the top to quickly find features.
Common Mistake
Logging into the wrong hosting account.
Step 2: Open the Domains or Subdomains Section
What to do
Depending on your cPanel version:
- Click Domains
- Or click Subdomains
Why
This tool lets you create and manage subdomains.
What you’ll see
A page where you can enter your new subdomain details.
Beginner Tip
Some hosting providers combine domain management into one Domains section.
Common Mistake
Opening Addon Domains instead of Subdomains.
Step 3: Enter Your Subdomain Name
What to do
Type the name you want.
Example:
- blog
- shop
- support
- test
Select your main domain from the dropdown menu.
Why
This creates the web address.
For example:
blog.example.com
What you’ll see
The complete subdomain preview.
Beginner Tip
Choose short and meaningful names.
Common Mistake
Using spaces or special characters.
Step 4: Choose the Document Root
What to do
The Document Root is the folder where your subdomain’s files will be stored.
Example:
public_html/blog
Why
Every subdomain needs its own folder.
What you’ll see
cPanel usually creates this folder automatically.
Beginner Tip
Leave the suggested folder unless you have a specific reason to change it.
Common Mistake
Using the same folder as your main website.
Step 5: Click Create
What to do
Click Create or Submit.
Why
This tells cPanel to create the subdomain.
What you’ll see
A success message confirming that your subdomain has been created.
Beginner Tip
Wait a few minutes before opening the new subdomain.
Common Mistake
Refreshing the page before the process finishes.
Step 6: Upload Your Website Files
What to do
Open File Manager and go to the folder created for the subdomain.
Upload your website files or install WordPress.
Why
A new subdomain is empty until you add website content.
What you’ll see
An empty folder ready for your website.
Beginner Tip
You can install a completely separate WordPress website on the subdomain.
Common Mistake
Uploading files to the wrong folder.
Understanding Document Root
| Term | Meaning |
|---|---|
| Subdomain | New website address |
| Document Root | Folder that stores website files |
| DNS | Directs visitors to your website |
| File Manager | Tool for managing website files |
Best Practices
- Keep subdomain names short.
- Use descriptive names.
- Install SSL certificates.
- Keep software updated.
- Back up your websites regularly.
- Remove unused subdomains.
- Use separate folders for each subdomain.
- Test your subdomain after creating it.
Common Problems and Solutions
| Problem | Solution |
|---|---|
| Subdomain not opening | Wait for DNS propagation (up to 24 hours). |
| 404 Error | Check the Document Root folder. |
| SSL warning | Install an SSL certificate. |
| Wrong website loads | Verify the Document Root path. |
| Permission errors | Check folder permissions. |
| Files missing | Upload website files again. |
| WordPress won’t install | Make sure the folder is empty. |
Beginner Checklist
Before finishing, make sure:
- Logged into cPanel
- Opened Domains or Subdomains
- Entered a subdomain name
- Selected the correct domain
- Verified the Document Root
- Created the subdomain
- Uploaded website files
- Tested the new subdomain
Frequently Asked Questions
1. What is a subdomain?
A subdomain is a separate section of your main website with its own web address.
2. Does creating a subdomain cost extra?
Usually no. Most hosting plans allow multiple subdomains at no additional cost.
3. Can I install WordPress on a subdomain?
Yes. Many users install a separate WordPress website on each subdomain.
4. How long does a subdomain take to work?
Usually a few minutes, but DNS propagation can sometimes take up to 24 hours.
5. Can I delete a subdomain later?
Yes. You can remove it anytime from cPanel.
6. Will deleting a subdomain delete my files?
The subdomain is removed, but the folder may remain. Always check before deleting any files.
7. Can I create unlimited subdomains?
It depends on your hosting plan.
8. Do subdomains affect SEO?
Search engines can index subdomains separately. They can perform well when they contain useful, high-quality content.
9. Can I secure a subdomain with HTTPS?
Yes. Install an SSL certificate for the subdomain.
10. Can I use email with a subdomain?
Yes. Many hosting providers allow email addresses like [email protected].
Conclusion
Learning how to create a subdomain in cPanel is a valuable skill for anyone managing a website. A subdomain lets you build separate sections such as blogs, online stores, support centers, or testing environments without purchasing another domain.
By following the steps in this guide, you can create a subdomain in just a few minutes, upload your website files, and start using it right away. Remember to keep your subdomains organized, secure them with SSL, and maintain regular backups to ensure your websites remain safe and reliable.
