For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /cpanel/domains_and_subdomains/how_to_create_a_subdomain_from_cpanel.md.

How to Create a Subdomain in cPanel

You can create a subdomain in cPanel using the Domains section.

Access the Domains Section

Log in to cPanel

Log in to your cPanel account.

Open the Domains section

In the Domains section, click Domains.

Domains section in cPanel

Create a New Domain

Start creating a domain

Click Create A New Domain.

Create a New Domain option in cPanel

Enter the Subdomain

Enter the subdomain name

Enter the subdomain you want to create in the Domain field.

Domain field for entering the subdomain name

Configure the Document Root

Configure the document root

Deselect Share document root (/home/username/public_html) with "domain.tld" if you want the subdomain to use a separate document root.

Share document root option in cPanel

Specify the directory

Enter the directory where you want the files for the subdomain to be stored.

Document root directory field for the subdomain

Note

Make sure the document root points to the directory where you want to store the subdomain's website files.

Create the Subdomain

Submit the subdomain

Click Submit to create the subdomain.

Submit button for creating the subdomain

Your subdomain has now been created successfully.