How to create and manage subdomains in cPanel

You can create subdomains inside the cPanel as much as you needed. It is possible to create it for both the main domain as well as the addon domains on the cPanel account. Here I am providing the steps to create it from the cPanel interface and also how to make the DNS changes accordingly. You can watch the video tutorial by clicking here.

  1. Log in to the cPanel interface.
  2. Go to the 'Domains' section and you can find the option 'Subdomains' there.



  3. Click on it and you can provide the name for the subdomain. For example, if you need to create a subdomain like dev.yourdomain.com, you need to type dev in the 'Subdomain' field. 



  4. Verify the document root is correct. If needed, you can point to a different location as well. The document root is the location in which the subdomain files are getting stored. 
  5. Once it is confirmed, click on the 'Create' option and the subdomain should be created.

DNS Changes

In order to make the subdomain working, a DNS entry needs to be there at the nameservers. If you are using the nameservers configured in that same server and managed from WHM, nothing needs to be added as the DNS entries will be added automatically.

If you are using an external nameserver, an A record entry needs to be created there as well. For example, you have created a subdomain dev.yourdomain.com, you need to point an A record for 'dev' and point to the server IP address. 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How To Install and Use Docker on Ubuntu 16.04

Introduction Docker is an application that makes it simple and easy to run application processes...

Change Main IP of the server :: Vesta Panel

If we are changing the main IP of a server installed with Vesta panel, we can use the following...

cPanel: Apache-FastCGI Data Timeout Error

If you are using a cPanel server and have FastCGI enabled in Apache, you might be facing the...

Domainkey installer in cPanel

You can use the following cPanel script to install domainkey for an account...

Email issues :: Common Troubleshooting Steps

Here I will discuss some common errors and their solution: We are using a mail relay setup for...