How to Host A Website With Cpanel?

7 minutes read

To host a website with cPanel, you will need to perform the following steps:

  1. Choose a Hosting Provider: Find a reliable web hosting provider that offers cPanel as part of their hosting package. Make sure they provide sufficient storage, bandwidth, and other necessary features for your website.
  2. Register a Domain: Purchase a domain name from a domain registrar of your choice. Some hosting providers offer domain registration services as well, which can simplify the process.
  3. Set up Hosting Account: Sign up for a hosting account that includes cPanel access. The hosting provider will provide you with the necessary login credentials.
  4. Access cPanel: Login to your hosting account and locate the cPanel icon. Click on it to access the cPanel dashboard.
  5. Create an FTP Account: In order to upload your website files to the server, you need to create an FTP (File Transfer Protocol) account. In cPanel, navigate to the FTP section and create the account by specifying a username and password.
  6. Upload Website Files: Connect to the server using an FTP client (e.g., FileZilla) and upload your website files to the correct directory. Usually, you would upload your files to the "public_html" directory.
  7. Create Databases: If your website requires a database (e.g., if you are using a CMS like WordPress), create a new MySQL database in cPanel. Take note of the database name, username, and password.
  8. Install CMS (optional): If you're using a CMS, such as WordPress, you can install it through cPanel by using the "Softaculous Apps Installer" or similar software available in the "Auto Installers" section.
  9. Configure DNS Settings: To connect your domain name with your hosting account, you will typically need to modify the DNS (Domain Name System) settings. Login to your domain registrar's website, locate the DNS settings, and enter the nameservers provided by your hosting provider.
  10. Test Your Website: Once the DNS changes propagate, you can access your website using the domain name. Make sure to test all the pages, functionality, and links to ensure everything is working correctly.

By following these steps, you can successfully host a website with cPanel. Remember to regularly update your website, manage your email accounts, and make use of the various tools and features offered by cPanel to fully utilize its capabilities.

Best Website Hosting Providers in May 2024


Rating is 5 out of 5


  • Ultra-fast Intel Core
  • Low Price and High Quality
  • High Performance and Cheap Cloud Dedicated Servers
Digital Ocean

Rating is 4.9 out of 5

Digital Ocean

  • Active Digital Community
  • Simple To Use
  • Starting as low as 5$ per month

Rating is 4.8 out of 5



Rating is 4.7 out of 5


How to set up password-protected directories in Cpanel?

To set up password-protected directories in cPanel, you can follow these steps:

  1. Log in to your cPanel account.
  2. Under the "Files" section, click on the "Directory Privacy" option.
  3. In the new window, locate the directory you want to password-protect and click on the folder icon next to it.
  4. Check the box labeled "Password protect this directory" and enter a name for the protected area (optional).
  5. Click the "Save" button.

Now, you need to create a user who will have access to this password-protected directory. To do this, follow these steps:

  1. Scroll down to the "Create User" section and enter a username and password.
  2. Click the "Save" button.

The user has been created successfully. To assign this user to the password-protected directory, follow these steps:

  1. Scroll down to the "Permissions" section and select the directory you want to assign the user to.
  2. Click the "Go Back" button.
  3. Check the box next to the user you created in the "Authorized Users" section.
  4. Click the "Save" button.

Now, whenever someone tries to access the password-protected directory, they will be prompted to enter the username and password you created.

What is a subdomain and how to set it up in Cpanel?

A subdomain is a subdivision of a domain that allows you to create separate websites or sections within your main domain. It is created by adding a prefix to your domain name, such as "" or "".

To set up a subdomain in cPanel, follow these steps:

  1. Log in to your cPanel account.
  2. Scroll down to the "Domains" section and click on "Subdomains".
  3. In the "Create a Subdomain" section, enter the prefix for your subdomain in the "Subdomain" field. For example, if you want your subdomain to be "", enter "blog".
  4. cPanel will automatically populate the "Document Root" field based on your subdomain name. You can change this if desired, but the default value should work in most cases.
  5. Click the "Create" button to set up the subdomain.

Once the subdomain is created, you can upload your website files to the corresponding document root directory using FTP or the cPanel File Manager. The subdomain will then be accessible via the designated URL.

How to create and manage subdomains in Cpanel?

To create and manage subdomains in cPanel, you can follow these steps:

  1. Log in to your cPanel account.
  2. Scroll down to the Domains section and click on the "Subdomains" icon.
  3. On the Subdomains page, enter the subdomain name you want to create in the "Subdomain" field. For example, if you want to create a subdomain "shop" for your domain "", enter "shop" in the "Subdomain" field.
  4. After entering the subdomain name, cPanel will automatically populate the "Document Root" field with the appropriate directory path. You can customize this path if needed.
  5. Click on the "Create" button to create the subdomain.

To manage a subdomain:

  1. To delete a subdomain, go to the Subdomains page in cPanel, and under the "Actions" column, click on the "Remove" button next to the subdomain you want to delete.
  2. To redirect a subdomain, on the Subdomains page, locate the subdomain you want to redirect and click on the "Manage Redirection" link under the "Actions" column. Enter the URL you want to redirect the subdomain to, and click on the "Save" button.
  3. To view and manage the subdomain files, you can use the "File Manager" option in cPanel to navigate to the subdomain's document root directory and make changes as required.

Remember, subdomains may take some time to propagate across the internet, so allow some time for the changes to take effect.

Facebook Twitter LinkedIn Whatsapp Pocket

Related Posts:

To launch React.js on SiteGround, you can follow these steps:Access your SiteGround account: Log in to your SiteGround hosting account using your credentials. Create a new website: If you don't have an existing website, you need to create a new one. SiteGr...
New account creation in cPanel is fairly problem free. However, issues go for a toss when the wrong web site web page exhibits up. Often, the unsuitable web page exhibits up on account of unsuitable area configuration in cPanel. And, the web site homeowners us...
To host an HTML website on Hostinger, you can follow these steps:Sign up for a hosting plan: Go to the Hostinger website and select a hosting plan that suits your needs. Create an account and complete the registration process. Access your hosting control panel...
To install WordPress on cPanel, follow these steps:Download the latest version of WordPress from the official website ( in to your cPanel account using your credentials.Locate the "File Manager" icon and click on it.In the File Manage...
Moving a website from one host to another involves several steps that need to be carefully executed. Here is a detailed explanation of the process:Choose the New Hosting Provider: Research and select a reliable hosting provider that meets your website's re...
Transferring a website to a new host can sometimes seem like a daunting task, but with proper preparation and execution, it can be a relatively smooth process. Here are the steps involved in transferring a website to a new host:Choose a new hosting provider: R...