Web750 Support Articles and How-to guides:


cPanel Control Panel – Adding Domain Names and Setting up Subdomains


Regarding managing your website hosting, cPanel is a popular choice for many users. With its user-friendly interface and powerful features, cPanel makes adding additional domain names easy and setting up subdomains for your existing hosted domains. In this Support article, we'll provide an easy walkthrough on accomplishing these tasks and discuss where subdomain files are stored and how to set up a subdomain on your nameservers.


Adding Additional Domain Names in cPanel


Adding additional domain names to your cPanel account allows you to host multiple websites under the same hosting plan. Here's a step-by-step guide to adding a new domain name:


1. Log in to your cPanel account. You can usually access cPanel by navigating to "yourdomain.com/cpanel" or "cpanel.yourdomain.com" in your web browser.


2. Once logged in, scroll down to the "Domains" section and click the "Add on Domains" icon.


3. On the "Add on Domains" page, enter the new domain name you want to add in the "New Domain Name" field.


4. cPanel will automatically populate the "Subdomain" and "Document Root" fields based on the domain name you entered. You can customize these values if needed.


5. Enter a strong password in the "Password" field. Your client account password is necessary to manage the new domain's FTP account.


6. Click the "Add Domain" button to add the new domain to your cPanel account.


cPanel will now create the necessary DNS records and set up the domain for hosting. Upload files to the newly added domain's document root directory to make your website visible online.


Setting Up Subdomains in cPanel


Subdomains allow you to create separate sections or branches of your website, each with unique content. To set up a subdomain in cPanel, follow these steps:


1. Log in to your cPanel account.


2. Scroll down to "Domains" and select the "Subdomains" icon.


3. On the "Subdomains" page, enter the desired subdomain name in the "Subdomain" field. cPanel will automatically populate the "Document Root" field based on the subdomain name.


4. If you want the subdomain to point to a specific folder within your main domain's document root, you can specify the folder path in the "Document Root" field. Otherwise, you can leave it as is.


5. To create the subdomain, click the "Create" button.


cPanel will now set up the subdomain and make the necessary DNS records. You can then upload your subdomain's files to the document root directory specified during setup.


Where Do Subdomain Files Go?


By default, subdomain files are in a folder within your main domain's document root directory. For example, if your primary domain is "example.com" and you create a subdomain called "blog.example.com," your website files for the "blog" subdomain will be located in a folder named "blog" within the "public_html" directory.


You can access this folder using an FTP client or the file manager provided in cPanel. Navigate to your primary domain's document root directory and look for the subdomain folder.


Setting Up a Subdomain on Your Name Servers


In addition to setting up a subdomain within cPanel, you may need to configure your name servers to recognize and direct traffic to the subdomain. Here's a general guide to setting up a subdomain on your name servers:


1. Log in to your domain registrar's website and navigate to the DNS management section.


2. Locate the DNS settings for the domain you want to set up the subdomain for.


3. Add a new DNS record for the subdomain. Depending on your needs, the record type will usually be a "CNAME" or "A" record.


4. In the "Name" or "Host" field, enter the subdomain name you want to set up (e.g., "blog" for "blog.example.com").


5. Enter the IP address or domain name to which the subdomain should point in the "Value" or "Points to" column. That will be the same as your primary domain's IP address or hostname.


6. Save the DNS record, and allow time for the changes to propagate across the internet.


Once the DNS changes have propagated, your subdomain should be accessible and correctly directed to the specified location.


Conclusion


cPanel provides a straightforward interface for adding domain names and setting up subdomains within your hosting account. Increase your internet presence and administer many websites by following the procedures indicated in this article. Consider where subdomain files are stored and configure your nameservers correctly to ensure proper functionality. With cPanel, managing your domain names and subdomains becomes a hassle-free process.


With the ability to add additional domain names and set up subdomains in cPanel, you have the flexibility to expand your online presence and host multiple websites under a single hosting plan. Whether you need separate domains for different business ventures or subdomains for organizing different website sections, cPanel makes the process straightforward.


When adding additional domain names to your cPanel account, you can do so through the "Addon Domains" feature. By entering the new domain name, cPanel will automatically populate the subdomain and document root fields. You can customize these values if necessary, and be sure to set a strong password for managing the domain's FTP account.


In conclusion, cPanel's user-friendly interface and powerful features make it a popular choice for managing website hosting. Adding additional domain names and setting up subdomains is a simple process with cPanel's intuitive tools. Understanding where subdomain files are stored and configuring your nameservers allows you to manage multiple websites and subdomains under one hosting account. With cPanel, expanding your online presence and organizing your website becomes seamless and hassle-free.


Useful links / Resources


  • cPanel (Official): Adding Domain Name

  • Support Article (in Spanish)

  • Support Article (in Portuguese)

  • Go back to Web750