How to Create a Subdomain in cPanel?

Creating a subdomain in cPanel is a straightforward process that allows you to manage different sections of your website efficiently. 

Step-by-Step Guide to Creating a Subdomain in cPanel

1. Log into cPanel

The first step is to log into your cPanel account. Use your cPanel username and password to access the control panel.

2. Navigate to the Domains Section

Once logged in, locate the "Domains" section. This is where you manage your domain-related settings.

3. Click on "Domains"

Within the "Domains" section, click on the "Domains" icon. This will take you to a new page where you can see the list of all domains and subdomains associated with your account.

4. Create a New Domain

Click the "Create A New Domain" button. This will open a form where you can input the details of your new subdomain.

5. Enter the Subdomain Name

In the "Domain" text box, enter the name of the subdomain you want to create. For example, if your main domain is "example.com" and you want to create a subdomain for a blog, you might enter "blog.example.com".

6. Deselect the Share Document Root Option

By default, cPanel may select the option to share the document root with the main domain. You should deselect the "Share document root (/home/username/public_html) with 'domain.tld'" option to ensure that the subdomain has its own directory.

7. Specify the Subdomain Directory

In the "Document Root" text box, enter the directory where you want the files for this subdomain to exist. For instance, you might create a directory named "blog" under the public_html folder, resulting in "/home/username/public_html/blog".

8. Submit the Information

Finally, click the "Submit" button to create the subdomain. cPanel will set up the subdomain and create the necessary DNS entries and directories.



Was this answer helpful? 6 Users Found This Useful (48 Votes)