There are some scenarios where you might want to add a subdomain on your website. Probably, you run an e-commerce website and want to create a subdomain to specifically write blog posts. Or, you might sell digital products like WordPress themes or Elementor templates and want to create a “demo” subdomain to host the previews of the themes/templates you sell.
If you use cPanel, you can effortlessly add a subdomain on your website. cPanel has a feature that allows you to create as well as manage subdomains. To create a new subdomain in cPanel, first, log in the cPanel dashboard and click Subdomains on the DOMAINS section.

On the Subdomains page, enter your preferred subdomain name on the Subdomain field and select a domain you want to add the subdomain to from the dropdown menu on the Domain section and click the Create button.

The Document Root field will automatically be filled once you filled out the Subdomain field. This is a root directory where you can install a website on your new subdomain. You better not change it to make it easy for you to identify it in the future.
Manage the existing subdomains
You can manage your subdomains via the table on the Modify a Subdomain section. From this table, you can delete a subdomain, change the root directory of a subdomain, and manage a direction of a subdomain.

Install a new website on a subdomain
Once your subdomain is created, you can install a new website on it according to your purpose. cPanel itself has an app installer feature (Softacolous) to allow you to install CMS platforms like WordPress, Joomla, PrestaShop, and so on. If you want to install a website manually, you can copy the files of your website to the root directory of your subdomain.
In this example, we will show you how to install WordPress on a subdomain. To do so, go to the Softacolous Apps Installer section and click the WordPress icon.

On the next page, click the Install Now button.

On the Choose Installation URL section, select a subdomain you want to install WordPress on via the dropdown menu. Delete “wp” directory to install WordPress on the root directory.

Fill out all of the required fields (site name, site description, admin username, admin password, and admin email) and click the Install button on the bottom side.

Wait a moment until Softtacolous is done installing your WordPress. Once done, you can start using your website on your new subdomain.