The ease of setting up subdomains is one of the most powerful features of cPanel.
With just a couple of clicks you can have a subdomain activated, with a fresh copy of WordPress, and even a valid SSL certificate.
Recently we've had some questions on how to modify these, including deleting them, so I figured I'd make a little guide to help everyone out.
Check DNS Records
Before getting started, it's important to perform a DNS Check using our free DNS tool.
This allows you to make sure everything is setup correctly, so when you go to create the subdomain it'll provision as expected.
As you can see in the above screenshot we're using 4Stagers name servers (ns1.4stagers.com and ns2.4stagers.com) so cPanel will setup everything automatically.
If you're using a third-party DNS provider, such as Cloudflare, you'll need to follow their directions to properly add the corresponding records.
You should see no red on the report before getting started. (Important: if using Cloudflare's names servers you may see a false-positive test result, but always best to check with their support team to make sure).
How To Create A Subdomain
Once you're certain your DNS records are all set, you need to follow these simple steps to add the subdomain:
- Login to cPanel
- Navigate to the Subdomains icon
- Create the Subdomain
The document root is the folder where all of the files will live. We recommend keeping this default as it will place all the files just above your public_html directory of your main website.
Once you click Create it may take up to 24 hours for the DNS records to fully propagate. Most of the time it only takes a few hours in the United States, but if you don't see it active right away, that's why.
You can also see this article: How To Speed Up DNS Propagation to try and speed up this process.