Create and Manage a Subdomain in cPanel Print

  • Create, Subdomain, cPanel, How to, Delete, Addon Domain
  • 0

 

Introduction

 

Subdomains are extensions of a domain. They function separately from the main domain, thus they can be used to host additional websites. The format of a subdomain is: subdomain.domain.com.

 

Let’s say we have a domain mywebsite.com and we want to create a forum and a blog for the main site. We could locate them on forum.mywebsite.com and blog.mywebsite.com. These subdomains can also be accessed via mywebsite.com/forum and mywebsite.com/blog. In this tutorial, you will learn how to create and manage a subdomain in cPanel.


How To Create a Sub Domain in cPanel



Step 1.  Log into cPanel.

Step 2.  Click on “Subdomains” icon in the Domains Section on the cPanel.

Step 3.  In the Subdomain field, select the name of the subdomain you wish to use. For example, if you choose blog, your subdomain will be: blog.example.com

 

Step 4. In the adjacent drop-down menu, select the domain for which you wish to create this subdomain. You may create a subdomain for any addon domain or parked domain that already exists in your cPanel.

Step 5.  Click on the Document Root fieldand it should automatically populate with a suggested location from which the subdomain will load it's content.

Step 6.  Then click Create.

 

Uploading Files to Subdomain Document Root

All files/scripts should be uploaded to the Document Root directory specified in Step 2.
The directory is automatically created in public_html and can be easily accessed using File Manager section of cPanel.
If a subdomain is created using an Addon Domain, the subdomain’s Document Root will be created inside the root directory of the addon domain,
for example: public_html/addon_domain_root/subdomain_root.

Deleting A Subdomain

When you no longer need a subdomain, you can delete it.

To delete a subdomain, follow these steps:

  1. In the Domains section of the cPanel, click Subdomains.
  2. Under Modify a Subdomain, locate the subdomain that you want to delete, and then click Remove.
  3. Click Delete Subdomain to confirm the deletion.

 

 

 


Was this answer helpful?

« Back