in Tutorials

Adding a New Domain to Your Hosting Account via cPanel

So you’ve bought another domain name and wish to deploy it on your existing hosting account? Don’t worry, that’s easy! One of the great things of cPanel is how convenient it is to add a new domain to your shared hosting account with just a few clicks.

Please take note that this tutorial is only for cPanel users and if you are using a different control panel, unfortunately, you will need to go look for other guides. If you don’t have a hosting account yet, check out my affordable and reliable service, HostMeCheap!. In this tutorial, I will be using my hosting service as an example.

Adding your addon domain

When you already have a primary domain associated with your hosting account, the new domain you just purchased from a domain registrar will be treated as an ‘addon’ domain in cPanel. Login to your cPanel at https://www.hostmecheap.com:2083/. After you’ve logged in, look for and click on the feature called ‘Addon Domains’.

Tutorial Image 1 - Addon Domains
Tutorial Image 1 – Addon Domains

On the Addon Domains page, enter your new domain name on the box labeled, New Domain Name. Once you’ve entered the new domain name, the next two fields will automatically be filled. The Document Root is the folder where you can place your site files via FTP for the new domain. cPanel will automatically create the folder for you.

Tutorial Image 2 - Addon Domains Page
Tutorial Image 2 – Addon Domains Page

No need to tick the checkbox “Create an FTP account…” unless you wish to use a different FTP account to access the folder. All that’s left is to click the Add Domain button and your addon domain will be created.

Updating your nameservers

Now that the new domain has been setup on your hosting account, it will not work because you still have to modify the nameservers of your domain and point it to your hosting account. You can do this on your registrar account from where you purchased the new domain. Remove any existing nameservers and set the new ones to that of your hosting account’s. In this case since I am using my hosting service as an example, HostMeCheap!’s nameservers would be:

  • ns1.hostmecheap.com
  • ns2.hostmecheap.com

After you’ve updated the nameservers, it may take some time for the DNS changes to take effect worldwide. You can use a tool such as WhatsMyDNS to monitor the propagation.

Testing the new domain

Once the propagation is done, try accessing your new domain on the browser and if it’s showing the FTP content of your hosting account, then you’ve successfully deployed your new domain! To add files to your site, simply log into the FTP via FileZilla and look for the new folder of your new domain.

In this tutorial, the folder name would be somenewdomainname.com.

Let’s Encrypt FREE SSL

Now that you’ve added your new domain, I would suggest implementing SSL immediately so that your site will not be marked as ‘Not secure’ by browsers. You can find the step-by-step process on my tutorial: Issuing a FREE SSL Certificate for your domain using Let’s Encrypt SSL.

Write a Comment

Comment