How to Create a Subdomain in cPanel

  Uncategorized

Introduction

A subdomain is an extension of your primary domain that helps you organize different sections of your website or host separate applications under the same domain. For example, if your main domain is example.com, you can create subdomains such as blog.example.com, shop.example.com, or support.example.com.

Creating a subdomain in cPanel is quick and easy. Each subdomain can have its own document root, allowing you to manage its files independently from your main website. This guide walks you through the process of creating a subdomain in cPanel.

Prerequisites

Before you begin, ensure you have the following:

Steps to Create a Subdomain in cPanel

Step 1: Log in to cPanel

Log in to your cPanel account using your username and password.

Step 2: Navigate to Domains

  1. From the cPanel dashboard, scroll to the Domains section.
  2. Click Domains.

Step 3: Create a New Domain

Click the Create A New Domain button to begin adding a new subdomain.

Step 4: Enter the Subdomain Name

In the Domain field, enter the full subdomain name you want to create, for example:

blog.example.com

Step 5: Configure the Document Root

By default, cPanel may select the option to share the document root with the main domain.

Step 6: Specify the Directory

Enter the directory where the subdomain files will be stored.

Example:

/home/username/public_html/blog

You can choose any directory name that suits your website structure.

Step 7: Submit

Click Submit to create the subdomain.

Once the process is complete, the subdomain will be created. Upload your website files to the specified directory, and they will be accessible through the new subdomain URL.

Conclusion

Creating a subdomain in cPanel is a simple and effective way to organize different sections of your website or host separate applications under the same domain. By assigning a dedicated document root, you can manage the subdomain independently while keeping your main website organized. After creating the subdomain, upload your website files to the designated directory, and your new web space will be ready to use.

LEAVE A COMMENT