How to create a subdomain in cPanel

How to create a subdomain in cPanel

Creating a subdomain in cPanel is a simple and straightforward process.

Here are the detailed steps to create a subdomain using cPanel:

  1. Access cPanel:

    • Log in to your cPanel account. Usually, the URL to access cPanel is https://yourdomain.com/cpanel.
  2. Locate the Domains Section:

    • On the cPanel home screen, look for the section called "Domains".

  3. Create the Subdomain:

    • You will see a form to create a new subdomain.
    • Click the "Create a New Domain" button to add the subdomain. cPanel will configure the subdomain and create the corresponding directory on the server.
      • Subdomain: Enter the name of the subdomain you want to create. For example, if you want to create blog.yourdomain.com.
      • Domain: If you have multiple domains in your account, select the main domain to which the subdomain will be added.
      • Document Root: This field is automatically filled with a suggested path, such as /public_html/blog. You can leave this path or change it as needed.
  4. Configure the Subdomain:

    • After creating the subdomain, you may need to add files to the subdomain's directory (/public_html/blog) so that the content is displayed when someone accesses the subdomain.
    • If necessary, configure any additional DNS settings or adjust the subdomain's settings as specified by your hosting provider.

Note: Typically, subdomains are active within a few minutes, but it can take up to 24-48 hours for them to fully propagate.

That's it! Now you have a subdomain configured in your cPanel. If you need additional features, such as SSL certificates for the subdomain, you can configure these in the "SSL/TLS" section of cPanel.

    • Related Articles

    • How to create email accounts

      To create email accounts you need to have access to cPanel. Step 1 The first step will be to log in to your cPanel panel. Within your cPanel you must locate the Email section and then go to the "Email Accounts" item. Step 2 On this screen, you must ...
    • How to create Procedure in phpMyAdmin?

      To create a Procedure in phpMyadmin, you must first access phpMyadmin through cPanel. 1. Click on your database which is located on the left side, after that, click on "Routines". 2. Then click on "Create new Routine". 3. Fill in the data and ...
    • How to create a PostgreSQL database

      Here is a step-by-step guide to creating a PostgreSQL database on your hosting. 1. Login to cPanel: Access cPanel using your user credentials and password provided by your hosting provider. 2. Locate the “Databases” section: In the main cPanel ...
    • How to create a PostgreSQL database

      Here is a step-by-step guide to creating a PostgreSQL database on your hosting. 1. Login to cPanel: Access cPanel using your user credentials and password provided by your hosting provider. 2. Locate the “Databases” section: In the main cPanel ...
    • How to create a VIEW in phpMyAdmin?

      To create a View in phpMyadmin, you must first access phpMyadmin through cPanel. 1. Click on a table, it is located on the left side, as the following image: 2. Then you click on "View". Then "Create View". 3. You will be presented with a form to ...