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.
- Log in to the cPanel interface.
- Go to the 'Domains' section and you can find the option 'Subdomains' there.
- 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.
- 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.
- 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.