> For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt.

# 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**.
<img alt="Domains section in cPanel" src={image0} />

## Create a New Domain


### Start creating a domain
Click **Create A New Domain**.
<img alt="Create a New Domain option in cPanel" src={image1} />

## Enter the Subdomain


### Enter the subdomain name
Enter the subdomain you want to create in the **Domain** field.
<img alt="Domain field for entering the subdomain name" src={image2} />

## 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.
<img alt="Share document root option in cPanel" src={image3} />
### Specify the directory
Enter the directory where you want the files for the subdomain to be stored.
<img alt="Document root directory field for the subdomain" src={image4} />

:::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.
<img alt="Submit button for creating the subdomain" src={image5} />

Your subdomain has now been created successfully.
