How to create a subdomain in cPanel

A subdomain is an address like shop.example.com. It is a separate site with its own folder and is created in the same place as domains.

  1. Open "Domains" and click "Create A New Domain".
  2. In "Domain", enter the full subdomain name, for example shop.example.com.
  3. Clear "Share document root". The subdomain folder is filled in automatically - /shop.example.com.
  4. Click "Submit".
Creating a subdomain
Creating a subdomain

The DNS record of the subdomain is created automatically if the domain uses the hosting name servers. If DNS is elsewhere (registrar, Cloudflare), add an A record for the subdomain there, pointing to the account IP.

Subdomain in the domain list
Subdomain in the domain list

All tools work for a subdomain too: SSL, email, WordPress installation, PHP version.

Questions and answers
A subdomain opens at its own address (shop.example.com) and works as a separate site. A folder is part of the main site (example.com/shop).
If the domain DNS is not on the hosting, add an A record for the subdomain where your DNS is hosted. If DNS is on the hosting, wait a few minutes.