Subdomains are one of the most flexible features of modern web hosting. Whether you need a separate testing sandbox (staging.yourdomain.com), a company knowledgebase (docs.yourdomain.com), an online store (shop.yourdomain.com), or a standalone client portal, cPanel allows you to create unlimited subdomains in seconds without paying for additional domain names. In this 2026 comprehensive step-by-step tutorial, you will discover how to create a subdomain in cPanel, configure separate document roots, automatically issue free SSL certificates, and deploy WordPress with one click.
📌 What Exactly is a Subdomain?
A subdomain acts as an independent division of your main domain hierarchy. In blog.herohosty.com, “blog” is the subdomain, “herohosty” is the domain name, and “.com” is the top-level domain (TLD). Subdomains can run completely distinct content management systems (CMS), databases, and themes from your primary website.
Step 1: Accessing the Domains Manager in cPanel
In older versions of cPanel, there was a dedicated “Subdomains” icon. In modern cPanel (version 110 and newer, including the Jupiter and Paper Lantern interfaces), all domain management has been unified under the Domains tool:
- Log in to your HeroHosty cPanel (via
yourdomain.com/cpanelor the direct button inside your HeroHosty Client Area). - Scroll down to the Domains section or use the search bar at the top.
- Click on Domains (or Domains > Create a New Domain).
Step 2: Creating Your Subdomain & Setting Document Root
Once on the Domains dashboard, click the blue “Create A New Domain” button in the top right corner. Follow these critical steps:
⚙️ Domain Configuration Fields:
- Domain: Enter your full desired subdomain, for example:
app.yourdomain.comorstaging.yourdomain.com. - Share document root (CRITICAL): UNCHECK the box that says “Share document root (/home/username/public_html) with ‘yourdomain.com'”. Leaving this checked would point your subdomain to your main site’s homepage files!
- Document Root (File Path): cPanel will automatically suggest
public_html/app.yourdomain.comorapp.yourdomain.com. Keeping your subdomain in its own directory ensures total isolation so scripts and files never mix. - Click Submit (or Submit and Create Another).
cPanel will automatically create the DNS zone record (an A record pointing to your server IP) and provision the root directory inside your File Manager.
Step 3: Issuing Free SSL for Your Subdomain
Modern web browsers like Google Chrome and Apple Safari will flag any subdomain without an active SSL certificate as “Not Secure”. On HeroHosty, free AutoSSL is included with every shared and business hosting account:
- Return to cPanel Home and search for SSL/TLS Status.
- Find your newly created subdomain (e.g.
app.yourdomain.comandwww.app.yourdomain.com) in the list. - Check the box next to your subdomain and click Run AutoSSL.
- Within 2 to 5 minutes, AutoSSL verifies DNS resolution and installs a 256-bit DV SSL certificate with a green padlock.
For more advanced SSL management, check our dedicated walkthrough: How to Install Free SSL Certificate on HeroHosty.
Step 4: Installing WordPress on Your New Subdomain
If you created this subdomain to host a new WordPress installation (such as a blog or e-commerce shop):
- In cPanel, navigate to the Softaculous Apps Installer section and click WordPress.
- Click Install Now.
- In the Choose Installation URL section:
- Select
https://as the protocol. - In the Choose Domain dropdown, select your newly created subdomain (
staging.yourdomain.com). - Leave the “In Directory” field completely EMPTY so WordPress installs directly on the root of your subdomain.
- Select
- Configure your Admin Username, Strong Password, and Email Address.
- Click Install at the bottom. In less than 30 seconds, your subdomain is live!
See our full step-by-step WordPress tutorial: How to Install WordPress in cPanel via Softaculous.
Important DNS Notes if You Use Cloudflare
If your domain uses external DNS management such as Cloudflare or an external registrar instead of HeroHosty’s official nameservers, cPanel cannot update the remote DNS records automatically.
In this case, open your Cloudflare DNS panel and manually add an A Record for your subdomain:
- Type: A
- Name:
subdomain_name(e.g.apporstaging) - IPv4 Address:
92.204.167.189(HeroHosty server IP) - Proxy status: Proxied
Recommended European Hosting Plans
Single Shared Hosting
Ideal for personal blogs, starter sites, and portfolios.
✓ 10 GB Enterprise NVMe
✓ Unmetered Bandwidth
✓ Free SSL & cPanel
Business Shared Hosting
Designed for growing businesses, WordPress, & e-commerce.
✓ Unlimited NVMe SSD
✓ 2 CPU Cores & 4 GB RAM
✓ LiteSpeed Turbo Caching
Premium Shared Hosting
Max performance for web agencies and high-traffic portals.
✓ Unlimited NVMe SSD
✓ 3 CPU Cores & 6 GB RAM
✓ VIP 24/7 Support & Backups
Frequently Asked Questions (FAQ)
Are subdomains free on HeroHosty hosting?
Yes! You can create unlimited subdomains on your HeroHosty hosting account without paying registration fees or extra licensing costs.
Why is it important to uncheck “Share document root”?
If “Share document root” is checked, your subdomain shares the exact same file directory as your primary website, preventing you from hosting separate web applications or clean installations.
How long does it take for a new subdomain to work?
If your primary domain is already using HeroHosty’s nameservers, local DNS propagation is nearly instantaneous (usually within 1 to 5 minutes).
Can a subdomain have its own unique SSL certificate?
Yes. HeroHosty AutoSSL automatically issues a dedicated Let’s Encrypt / Sectigo DV SSL certificate for every subdomain you add.






