blog

How to Create a Subdomain in cPanel (2026 Step-by-Step Guide with SSL & WordPress)

RM
Raj Mehto Hosting & Infrastructure Analyst
Oct 21, 2023 8 min read
Step by step guide to creating a subdomain in cPanel with SSL and WordPress

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:

  1. Log in to your HeroHosty cPanel (via yourdomain.com/cpanel or the direct button inside your HeroHosty Client Area).
  2. Scroll down to the Domains section or use the search bar at the top.
  3. 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.com or staging.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.com or app.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:

  1. Return to cPanel Home and search for SSL/TLS Status.
  2. Find your newly created subdomain (e.g. app.yourdomain.com and www.app.yourdomain.com) in the list.
  3. Check the box next to your subdomain and click Run AutoSSL.
  4. 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):

  1. In cPanel, navigate to the Softaculous Apps Installer section and click WordPress.
  2. Click Install Now.
  3. 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.
  4. Configure your Admin Username, Strong Password, and Email Address.
  5. 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. app or staging)
  • 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.

✓ 1 Website
✓ 10 GB Enterprise NVMe
✓ Unmetered Bandwidth
✓ Free SSL & cPanel

€0.97 /month

Deploy Single Plan →

Premium Shared Hosting

Max performance for web agencies and high-traffic portals.

✓ Unlimited Websites
✓ Unlimited NVMe SSD
✓ 3 CPU Cores & 6 GB RAM
✓ VIP 24/7 Support & Backups

€2.93 /month

Deploy Premium Plan →

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.

Share this article:
RM

About Raj Mehto

Senior Infrastructure & Cloud Hosting Analyst at HeroHosty. Dedicated to conducting independent speed benchmarks, server hardware evaluations, and actionable hosting advice for Indian website owners.

🚀 Fast NVMe Web Hosting

Ready to Experience Lightning-Fast Website Speeds?

Deploy your website on HeroHosty's LiteSpeed NVMe servers starting at just ₹69/month (on 3-year plan) with free cPanel, free SSL, and 24/7 instant WhatsApp support.

Explore HeroHosty Hosting Plans →