How to Create a Subdomain in cPanel
Quick Summary
A subdomain is an extension of your main domain. For example, if your domain is example.com, you can create a subdomain such as blog.example.com, shop.example.com, or portal.example.com.
When to Use a Subdomain
You may use a subdomain for:
- Blog
- Client portal
- Store
- Test website
- Staging website
- Landing page
- Application dashboard
- Documentation area
Example Subdomains
blog.example.com
shop.example.com
app.example.com
support.example.com
Steps to Create a Subdomain in cPanel
- Log in to cPanel.
- Go to the Domains section.
- Click Domains.
- Click Create A New Domain.
- Enter the subdomain name.
Example:
blog.example.com
- Choose the document root.
Example:
public_html/blog
- Click Submit.
After Creating the Subdomain
After the subdomain is created, you can:
- Upload website files
- Install WordPress
- Create a separate application
- Point DNS if required
- Install SSL
Document Root Explained
The document root is the folder where the subdomain files are stored.
Example:
Subdomain:
blog.example.com
Document root:
public_html/blog
DNS Requirements
If your domain uses CybroHost nameservers, DNS may be created automatically.
CybroHost nameservers:
- dns1.cybrohost.com
- dns2.cybrohost.com
If your domain uses external DNS such as Cloudflare, create an A record for the subdomain.
Example:
Name: blog
Type: A
Value: Your server IP address
Common Problems
Problem: Subdomain does not load.
Solution: Check DNS records and wait for propagation.
Problem: Subdomain shows the wrong website.
Solution: Check the document root folder.
Problem: SSL does not install.
Solution: Make sure the subdomain points to the correct server, then run AutoSSL.
Need Help?
Open a support ticket:
