Skip to content

Tutorials cPanel Beginner1 min read

How to Create a Subdomain in cPanel

Create a subdomain like blog.example.com or shop.example.com in cPanel, choose its document root, and add SSL and DNS correctly.

By ZSOLNET Editorial Team Updated

Key takeaways

  • Create subdomains in Domains with their own document root.
  • Add an A record if DNS is hosted elsewhere.
  • Run AutoSSL after creating the subdomain.

A subdomain is a prefix on your domain — blog.example.com, shop.example.com — that can host a separate site or app.

Create it

  1. Open Domains → Domains and click Create A New Domain.
  2. Enter the full subdomain, e.g. blog.example.com.
  3. Untick Share document root if you want it to have its own folder, and set the Document Root (for example blog.example.com or public_html/blog).
  4. Click Submit.

On older cPanel versions, use Domains → Subdomains instead.

yourdomain.com:2083

Create A New Domain

Submit1
1 Enter the full subdomain, give it its own document root, and submit.

DNS

If your domain uses this server’s nameservers, cPanel creates the DNS record automatically. If DNS is hosted elsewhere, add an A record for blog pointing to your server’s IP address at your DNS provider.

SSL

Run SSL/TLS Status → Run AutoSSL so the new subdomain gets a certificate. It must resolve to your server first.

Install a site

Upload files to the subdomain’s document root, or use an app installer and choose the subdomain as the install location.

Share X LinkedIn Facebook

Log in to your account

Manage your domains, hosting and invoices in one place.

Secure connection straight to the ZSOLNET client area.

No account yet?