How to host a website on cPanel

How to host a website on cPanel

cPanel is a control panel that allows Linux users to manage their hosting accounts from a web browser. With cPanel, you can manage your websites, E-mails, set up mail forwarding, manage subdomains, upload and manage files, as well as perform a variety of other administrative tasks.

cPanel contains several features that cannot be offered by other control panels for hosting. Since it is graphical, non–technical individuals can also use it perfectly. cPanel is also responsive to screen sizes, making it possible to use it on mobile devices.

The cPanel web hosting control panel is very easy to use and configure. All the advanced settings for web hosting are automatically adapted with the cPanel. The user doesn’t need to go to the command line to configure anything, since the control panel already includes all the features.


  • Host domain
  • Set up emails for your websites
  • Create new databases/manage existing ones
  • Install WordPress (or another content management system)
  • Back up your website
  • Change various security settings
  • Install add-on apps on your server
  • Set up various optimizations
  • Upload files to your server
  • Check your bandwidth and other usage stats

Login to the cPanel

Enter the following URL in the browser to open the cPanel login page.


Enter the User and the Password to log in.

Host the website on Main Domain

To host the website on the main cPanel domain, simply click on the File Manager button.

Click on the public_html directory and upload all the files and directories to host the website on the main domain.

Set Up Add-On Domains

Add-On Domain is a feature of cPanel which allows you to create a separate file structure for the additional domains. To host a website with Add-On Domain. Click on the Add-On Domains button.

Enter the Domain name which you want to host on the cPanel and then click on the Add Domain button to host the domain.

You have successfully hosted the Add-On Domain on the cPanel. Now open the File Manager and click on the public_html directory and then click on the directory with your domain name to upload the content of the website which you want to host.

For this tutorial, we have hosted an Add-On Domain named To upload the files and directories of the website, click on the directory.

Some Important Features of cPanel

  • Email Account – It is used to create and manage mails accounts of our domains.
  • File Manager – It is used to access the files of domains which are hosted on the cPanel
  • FTP Accounts – It is used to create and manages the FTP accounts. With FTP, we can easily upload and download files from the server.
  • MySQL Databases – It is used to create and manages the database and users on the cPanel.
  • phpMyAdmin – It is used to access the databases created by MySQL.
  • Zone Editor – It is used to manage the DNS records of the domains.
  • MultiPHP Manager – It is used to switch the PHP version of the domain.

Email Account

To create an E-mail address of the domain, click on the Email Account option.

Click on Create button.

Select the Domain name and enter the Username, then generate and enter the password. Click on the Create button to create the Mail Account.

File Manager

To open the File Manager option to access the files and directories.

From here you can access files and directories.

FTP Accounts

To create FTP, click on the FTP Accounts option.

  • In Log In section enter a name for the FTP account, select the Domain name for which you are creating the FTP account then enter the Password and then enter the Directory Path for the FTP. Click on the Create FTP Account button to create the FTP.

MySQL Databases

Click on the MySQL Databases option to create and manage the databases and database users.

Enter a name for the database which you want to create, and then click on the Create Database button.

Enter the database Username and Password and then click on the Create User option to create a database user.

To assign the user to the database, Select the Database User and Database which you have created above.

To grant all the privileges to the user on the database, tick mark All Privileges and then click on the Make Changes button.


To access all the databases created under the cPanel user, click on the phpMyAdmin option.

From here, you can access all the Databases.

Zone Editor

To manage the DNS records, click on the Zone Editor option.

Choose the domain and then click on the Manage button to check and modify the DNS records.

MultiPHP Manager

To edit the DNS records, click on the MultiPHP Manager option.

First, select the domain and then select the PHP version in which you want to switch.


In today’s tutorial, we have learned about the cPanel with its important features such as FTP, Mail Account, File Manager, etc. In the future, we will discuss more features of cPanel.

If you guys have any questions or queries, let me know in the comments section.