You can add a subdomain from your cPanel.
- Login into your cPanel (yourdomain.com/cpanel or server-ip/cpanel)
- Under ‘Domains’ click on ‘Subdomains’
- In the ‘Subdomain’ box enter the subdomain of your sites main domain that you want to create
- In the ‘Document Root’ box enter the path to the directory that the subdomain should point to
- Click ‘Create’. That will create the subdomain directory in the location you specified in the ‘Document Root’ box.
- Your subdomain has now been added.