How to Create a Subdomain in cPanel: Step-by-Step Guide

How to Create a Subdomain in cPanel: Step-by-Step Guide

How to Create a Subdomain in cPanel blog image

cPanel is a graphical control panel interface that simplifies the management of your web hosting, including creating subdomains.

cPanel has become very popular, and you can use it with hosting providers such as Namecheap or GoDaddy.

This article will explain  how to create subdomains in cPanel. Also, you’ll learn how to modify and redirect subdomains, how to use the cPanel with your hosting provider, and tips to do it right.


Choosing a domain hosting provider is crucial for ensuring reliable website accessibility and optimal performance. For the top recommendations, refer to our curated list of the best domain hosting providers.

Top Domain Hosting Providers We Recommend

ProviderUser RatingBest ForExpert & User Reviews 
 5.0VersatilityHostArmada ReviewVisit HostArmada
 4.9CustomizationUltahost ReviewVisit Ultahost
4.6SpeedHostinger ReviewVisit Hostinger
  • Subdomains can help you organize and manage your website better
  • One of the simplest ways to create a subdomain is by using cPanel
  • Adding a subdomain to your root domain in cPanel is straightforward and you can do it with few steps
  • You can create a subdomain in cPanel even if you host your website in NameCheap or GoDaddy

How to Create a Subdomain in cPanel

Creating a subdomain in cPanel takes a few steps but otherwise, it is a straightforward process to follow. While the basic steps are mostly the same, there can be differences depending on the hosting provider.

How to Create a Subdomain in cPanel, Namecheap

Namecheap offers users the option to create subdomains by using cPAnel.

Here are the main steps:

Step 1: Log in to your cPanel, go to Your Domain section then go to the Domain menu.

Image Source from categories

Image Source:

Step 2: Now to start creating the subdomain, click on the button Create A New Domain Image Source from domains search bar

Image Source:

Step 3: Go to the Domain text box and type in the subdomain name.

The subdomain should be a prefix to the primary domain name. For example, if the main domain is, the subdomain could be The .com extension indicates what type of domain is your main domain name.

Image Source from list domains

Image Source:

Step 4: Choose the directory where you want the subdomain’s content to live. Namecheap has a default option of a shared document root. That means the subdomain will share content with the main domain.

If you want the content for the subdomain to live in a separate directory, unselect the “Share document root (/home/username/public_html) with “” choice and enter the directory where all the files you want for this subdomain to exist.

image Source from document root

Image Source:

Step 5: Click the submit button to finish creating the subdomain.

Image Source from test.nctest

Image Source:

The new subdomain may take up to 40 minutes to propagate.

With Namecheap, you can also create a wildcard subdomain, which allows you to point all subdomains to a folder in your account.

How to Create a Subdomain in cPanel with GoDaddy

Another leading hosting provider is GoDaddy. Creating a subdomain in cPanel for GoDaddy requires a few simple steps:

Step 1: Log into your GoDaddy account.

godaddy welcome back

Image source: 

Step 2: After signing into your GoDaddy go to the “My Products” section after signing in to your GoDaddy account go to account settings and scroll down till you see Web Hostings and click on manage

godaddy all products and services

Image source: 

Step 3: Click on the cPanel Amin button. It will take you to the cPanel dashboard.

Image source: 

Step 4: Once you’re in the cPanel dashboard, scroll down until you find the “Subdomains” button and click on it.

cPanel domains category

Image source: 

Step 5: In the “Subdomains” window, type the name of the subdomain in the text box. The system will generate the document root automatically. Click “Create”.

cPanel subdomains

Learn more about how to create a subdomain in GoDaddy cPanel.

How to Create a Subdomain in cPanel with WordPress

You can also create a subdomain in WordPress hosting. Here are the instructions:

Step 1:  Create the subdomain from your hosting provider dashboard. Follow the steps in the previous sections for your hosting provider.

Step 2:  Next, install WordPress for your subdomain. To do that, you should use the auto-installer in the hosting panel. Go to the dashboard select the main domain for which you created the subdomain and go to the auto installer.

image source from website

Image source

Step 3:  Click on the install application. Select WordPress.

image source from wordpress

Image source

Step 4: In the WordPress setup. You will see the domain and the list of subdomains. Select the subdomain you created.

install wordpress description

Step 5: The installer will require your username, password and domain name. Click on install. That’s it, you have successfully created a subdomain and installed WordPress on it.

HostArmada: The Best Domain Hosting
HostArmada offers a wide range of Domain TLDs at affordable prices that come with DNS management and email forwarding. They offer a free domain forever as part of all their hosting plans. HostArmada is an excellent solution for anyone looking for a reliable domain registrar and the convenience of managing websites and domains from a single place.
Visit HostArmada

How to Create a Subdomain in cPanel, Jupiter

The process to create a subdomain in the cPanel Jupiter theme is very similar to the process we listed in the first section.

Step 1: Log into your cPanel account and click on Domains.

 image from

Image source

Step 2: Click “Create a new domain” on the domains dashboard.

image source from create new domain

Image source

Step 3: Enter your chosen subdomain name in the Domain text box.

Step 4: Uncheck the  “Share document root (/home/username/public_html) with “”. By doing so, you ensure the content is not stored in the same location as the rest of the domain.

image source from domains and subdomain

Image source

Step 5:  Click on the Submit button. The subdomain may take a few minutes to propagate. Then you can upload your content.

Does Each Subdomain Have Its Own cPanel Account?

The short answer is YES. You can have separate cPanel accounts for each subdomain.

Doing so has many advantages.

  • Can prevent cross-site attacks: When you have all subdomains in the same cPanel account an attacker entering the account can infiltrate all sites within the same account.
  • Increase security: Separate cPanel accounts can also increase security by limiting a developer from accessing other sites that belong to the same cPanel account.

There are some downsides to having separate cPanel accounts for the subdomains.

  • Cost: It may be more expensive to maintain multiple cPanel accounts.
  • Complex: It can also be more complicated to manage them and use more resources.
  • Time-consuming: You’ll need to manage security across numerous cPanel, which might be time-consuming.

Read more about HostArmada

Expert and User Insights by HostArmada Customers
Based on 789 user reviews
  • User Friendly
  • Support
  • Features
  • Reliability
  • Pricing
Visit Site

Troubleshooting Your Newly Created Subdomain in cPanel

However well you follow the steps to create a subdomain, there can be issues. Here are some of the most common issues and how to troubleshoot them.

cPanel Subdomain Not Working

In some cases, the DNS for the domain may not be hosted on the same machine as the cPanel. That means the DNS wasn’t properly configured.

How to solve it? To fix this issue, you must go to your hosting provider and add an A record for the subdomain where your DNS is hosted.

Error: You Must Specify a Subdomain

In the cPanel user forum, technical support staff recommends creating a ticket if this error happens to you.

According to one cPanel user, the issue may be fixed by following the steps to create a subdomain but checking the option to  ”Share document root (/home/username/public_html) with “”.

Because this solution may not work for everyone, we advise you to ask for support for this error.

Other Common Problems

The tracked DNS returns a SOA record instead of the A record address:

  • It could be that your DNS records are stored in an external service – add the A Record there
  • The subdomain is still propagating – wait until it finishes propagating
  • The main domain uses different third-party nameservers - ensure the DNS records are on the servers where you host the nameservers

You get a “Sorry” page when submitting your subdomain:

  • The DNS isn’t configured right for the domain
  • The Apache virtual host isn’t configured right


  • The browser cannot resolve the domain name of an IP address

How to Upload Website Files to a Subdomain in cPanel

Once the subdomain is up and running, it’s time to upload website files to the subdomain. When you created the subdomain, cPanel created a Document Root directory in the public_html directory.

Here’s where you will upload your web files to.

To upload your web files to a subdomain in cPanel, you can use FTP or you can use the File Manager in cPanel.

Using FTP

  • Step 1: Open the FTP client. Sign in with the hosting account with your FTP username and password.
  • Step 2: Go to the public_html directory and find the folder that corresponds to your subdomain, i.e. public_html/subdomain_name.
  • Step 3: Upload the web files to the subdomain folder.

Using the File Manager

  • Step 1: Go to cPanel, find Files and then open File Manager.
  • Step 2: Find the public_html folder and click on it.
  • Step 3: Find the folder that corresponds to your subdomain and open it.
  • Step 4: Upload the web files to this folder with the Upload function.

How to Manage Subdomains in cPanel

Subdomains are not set and forgotten. Once you create them, you can rename them, redirect them or remove them. Here is how:

How to Modify a Subdomain

The steps can differ slightly depending on the hosting provider. For instance, in GoDaddy:

  • Go to Domains
  • Find your domain and select Domain Edit Options. Select Edit DNS.
  • Enter the details you want for your A record and select Save

How to Remove a Subdomain

  • Step 1: Log in to cPanel and go to cPanel/Domains
  • Step 2: Go to the subdomain you want to remove, and select Manage.
  • Step 3: Select Remove Domain.

How to Redirect a Subdomain

  • Step 1: Log into your cPanel account.
  • Step 2: Go to the Domains section, and click on the subdomains option.
  • Step 3: Look for the Modify a Subdomain menu. Look for the subdomain you wish to manage.
  • Step 4: Look for the  Manage Redirection link next to it and click on it.
  • Step 5: Choose the Subdomain Redirection option, and enter the link where you want to redirect the subdomain.

Final Word: Creating a Subdomain Is Simple With cPanel

Subdomains are useful to improve the website’s organization and functionality. Creating a subdomain using cPanel gives you a straightforward process consistent across different cPanel interfaces. Learn more about how to create a subdomain in our blog.

Ultahost Domain Hosting
UltaHost delivers customized hosting solutions for everyone, from beginners to industry giants, emphasizing superior VPS and managed hosting services for hassle-free website functionality. Ultahost offers a free domain, SSL, and many great features, but what really makes it stand out are its highly transparent pricing plans and all the included freebies.
Visit Ultahost

Next Steps: What Now?

Now that you learned how to create a subdomain in cPanel, leverage it to improve your website strategy.

  • Register your domain name if you haven’t already and choose your web hosting
  • Decide if you will use a Website builder or will create your website with coding
  • Use subdomains to organize your content. Optimize them for keywords or themes
  • Ensure each subdomain is secure with an SSL certificate

Learn More About Subdomains

Frequently Asked Questions

How do I create my own subdomain?

You can create your subdomain with or without cPanel. To create it with cPanel you need to log in, go to Domains/Subdomains and enter the name of the subdomain you want to create. To create it without using a cPanel you can use a hosting provider such as GoDaddy.

What is the difference between addon domain and subdomain cPanel?

A subdomain is part of your main domain. For instance, for the domain, a subdomain could be Search engines and registrars consider subdomains as extensions of the root domain.

On the other hand, an add-on domain is a separate domain with a different domain name and content.

How to create a subdomain in cpanel and install WordPress?

First, you need to follow the steps to create a regular subdomain in cPanel. Next, you go to the applications panel of the hosting provider and install WordPress. In the WordPress setup, select the subdomain where you want to install WordPress.

10 Best VPS Hosting on Reddit: Most Recommended Providers 2024

Reddit is a popular source for hosting recommendations, including VPS hosting. With multiple conversations on choosing a service and dozens o...
4 min read
Ela Gal-Kfir
Ela Gal-Kfir
Digital Marketing Specialist

HostAdvice Speaks to ScalaHosting: An Interview with Chris Rusev

HostAdvice had the opportunity to speak with Chris Rusev, the CEO and co-founder of , a web hosting company that offers shared, cloud VPS, and res...
8 min read
Eddie Segal
Eddie Segal
Digital Marketing Specialist

Email Deliverability: What Is It, Key Factors & Best Practices

What is Email Deliverability? Think of it like mailing a letter and making sure it lands right in the recipient's hands, not lost or thrown...
17 min read
Ela Gal-Kfir
Ela Gal-Kfir
Digital Marketing Specialist

Email Marketing vs. Social Media: Which is More Effective?

What is Email Marketing? Email marketing is a  that involves companies reaching out to potential and existing customers via email ...
10 min read
Ela Gal-Kfir
Ela Gal-Kfir
Digital Marketing Specialist provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.
Click to go to the top of the page
Go To Top