01 / cPanel guidesUpdated 7 Nov 2026

How to create a subdomain in cPanel

A subdomain such as `blog.example.com` or `shop.example.com` is a separate site under a domain you already have. This guide shows where current cPanel creates subdomains, how to choose the subdomain’s folder and DNS, how it gets an SSL certificate, and how to fix a subdomain that does not open.

Short answer

To create a subdomain in cPanel, open Domains » Domains and click Create a New Domain. In Domain, type the full name, for example blog.example.com, untick Share document root, check the suggested Document Root and click Submit. cPanel adds the DNS record itself when the domain uses the server’s nameservers; otherwise add an A record at your DNS provider.

Where
cPanel » Domains » Domains » Create a New Domain
You need
A cPanel login, the parent domain on your account and a free subdomain in your package
Applies to
cPanel & WHM 134 (LTS) to 138, Jupiter theme
Package limit
Max Subdomains

Where subdomains are created now

Current cPanel has no separate Subdomains screen. The old Subdomains, Addon Domains and Aliases screens are gone, and subdomains are now created on Domains » Domains with the Create a New Domain button.

A subdomain is a name under a domain the account already has, such as blog.example.com under example.com. In cPanel a subdomain is a site of its own, with its own folder, DNS record and SSL certificate. A subfolder such as example.com/blog is only part of the main site.

The hosting package sets how many subdomains the account may create (Max Subdomains), and the host must enable the Subdomains feature in WHM » Packages » Feature Manager. If cPanel will not create a subdomain, ask your host whether both are in place.

Create the subdomain

  1. Log in to cPanel.
  2. In the Domains section, click Domains.
  3. Click Create a New Domain.
  4. If the screen asks for a domain type, select Registered Domain.
  5. In Domain, type the full subdomain: the new name, a dot and the existing domain, for example blog.example.com.
  6. Untick Share document root so the subdomain gets its own folder.
  7. Check Document Root. cPanel suggests a folder inside public_html; keep it or type another, such as public_html/blog.
  8. Click Submit, or Submit and Create Another to add more.

The new subdomain then appears in the list on the Domains screen next to its document root. Clicking the subdomain’s name opens it in a new browser tab.

NoteIf Share document root stays ticked, the subdomain serves the same files as the main domain and its folder cannot be changed later on the Manage page.

Choose the subdomain’s folder

The document root is the folder whose files the subdomain serves. On the Create a New Domain screen it must be inside public_html; cPanel does not accept a folder outside it.

A subdomain can use a folder that already exists. For example, to give an app in public_html/shop the address shop.example.com, enter public_html/shop in Document Root when you create the subdomain.

To put a site on the subdomain, upload its files into the subdomain’s folder with File Manager, or install an application such as WordPress and choose the subdomain as its domain. The subdomain shows the site only when its folder holds an index.php or index.html at the top level.

Make the subdomain resolve

When the parent domain uses the server’s nameservers, cPanel adds an A record for the subdomain to the parent domain’s zone as it creates the subdomain. Nothing else is needed; the record shows in Domains » Zone Editor under the parent domain.

When the parent domain’s DNS is hosted elsewhere, such as Cloudflare or the registrar, the record cPanel creates never reaches the internet. Add it yourself at that DNS host: an A record named blog (or blog.example.com, depending on the host) that points to the server’s IP address.

cPanel shows the server’s IP address as Shared IP Address or Dedicated IP Address in the General Information panel on the cPanel home page.

NoteIf you opened the subdomain before its record existed, your DNS resolver may remember for a while that the name did not exist. Test from another network or wait, instead of adding the record a second time.

Get an SSL certificate for the subdomain

When you create a subdomain, cPanel secures it with an existing certificate that covers the name, or else with a self-signed certificate. If your host has enabled AutoSSL, cPanel also requests a free certificate for the subdomain and installs it when it is issued.

AutoSSL can only validate a subdomain that resolves to the server, so fix the DNS first. In Security » SSL/TLS Status, filter by the Subdomain type to see each subdomain’s certificate, or by Has AutoSSL Problems to see which ones failed and the error for each.

Once the subdomain has a valid certificate, set its Force HTTPS Redirect toggle to On on the Domains screen so visitors always reach the https:// address.

Change or remove a subdomain

  • To change the folder, click Manage next to the subdomain on Domains » Domains, enter the new path in New Document Root and click Update. cPanel does not move the files for you.
  • cPanel cannot rename a subdomain. Create the subdomain with the new name, move the files and remove the old one.
  • To remove a subdomain, click Manage, then Remove Domain and Yes, remove this domain. Its folder and files stay on the server.
  • To send a subdomain’s visitors to another address, add a redirect for it on Domains » Redirects.

Common problems

The browser shows “DNS_PROBE_FINISHED_NXDOMAIN” or “This site can’t be reached”.
No DNS record exists for the subdomain where the internet looks for it. If the domain’s nameservers are at Cloudflare or the registrar, add an A record for the subdomain there with the server’s IP address. If they are this server’s, check the record in Zone Editor and wait a few minutes.
The subdomain shows the main website.
The subdomain was created with Share document root ticked, so it serves the main domain’s folder. Remove it on its Manage page and create it again with the box unticked.
The subdomain shows an empty page, “Index of /” or “403 Forbidden”.
The subdomain’s folder has no index.php or index.html yet. Upload the site into the folder shown in the Document Root column, not into public_html itself.
cPanel says the subdomain “may not be created” because the domain “is already owned by another user”.
The parent domain belongs to another cPanel account on the same server, and cPanel does not let one account create subdomains of another account’s domain. Create the subdomain from the account that owns the domain.
The browser says the subdomain’s connection is not private.
AutoSSL has not issued a certificate yet, usually because the subdomain did not resolve to the server when AutoSSL ran. Fix the DNS first, then check SSL/TLS Status; the server also runs AutoSSL every night.
cPanel will not create another subdomain.
The account has reached Max Subdomains in its package, or the host has not enabled the Subdomains feature. Remove an unused subdomain or ask your host to raise the limit.

Doing it from CTAServer

CTAServer connects to each cPanel server’s WHM with an API token on port 2087 and shows every hosting account with its main domain and how many addon domains and subdomains it has, synced from the server. Subdomains themselves are created and removed in cPanel.

  • Creating or removing subdomains, addon domains and aliases on cPanel servers is not done from CTAServer; use cPanel’s Domains screen.
  • A subdomain’s DNS records can be edited on CTAServer’s DNS zones screen through WHM’s API (A, AAAA, CNAME, MX, TXT, NS, SRV and CAA), so each change also appears in cPanel’s Zone Editor. This only reaches the internet when the domain uses the server’s nameservers.
  • After a new subdomain is added, you can run an AutoSSL check for that one account from CTAServer’s Manage AutoSSL screen.
  • Because the subdomain count is synced from the server, a subdomain added in cPanel is counted in CTAServer’s account list after the next sync.

Frequently asked questions

Where is the Subdomains option in cPanel?

Current cPanel versions have no separate Subdomains screen. Open Domains » Domains, click Create a New Domain and type the full name, such as blog.example.com. The same screen now creates addon domains and aliases too.

What is the difference between a subdomain and a subfolder?

A subdomain such as blog.example.com is a separate host name with its own DNS record, folder and SSL certificate. A subfolder such as example.com/blog is a directory of the main site and needs no DNS record or certificate of its own.

Does a subdomain need its own SSL certificate?

Yes, unless a wildcard certificate for *.example.com already covers it. If your host has enabled AutoSSL, cPanel requests a free certificate for each new subdomain by itself, as long as the subdomain resolves to the server.

How long does a new subdomain take to work?

If the domain uses the server’s nameservers, a new subdomain usually answers within minutes, because cPanel adds its DNS record straight away. cPanel’s documentation warns that DNS changes can take two days or more to reach every nameserver, and a record added at an outside DNS host follows that host’s timing.

Can I point a subdomain to another server?

Yes, with a DNS record instead of the Domains screen. Add an A record for the subdomain with the other server’s IP address in Domains » Zone Editor, or at your DNS host if the domain’s nameservers are elsewhere. Create the subdomain on the Domains screen only when its site is hosted on this cPanel account.

How do I delete a subdomain in cPanel?

On Domains » Domains, click Manage next to the subdomain, then Remove Domain and Yes, remove this domain. cPanel removes its web server and DNS entries but keeps the folder and files, which you can delete afterwards in File Manager.

02 / Get started7 days free · No card needed

Connect your first server today.

Free for 7 days, no card needed. Create your account, add your first server with an API token or an SSH key, and the panel starts filling in a few minutes later.

No setup fee · Cancel anytime · EU-hosted