Skip to main content

Getting started with cPanel/WHM

Updated over a week ago

Introduction

cPanel is a Linux-based web hosting control panel that provides a graphical interface and automation tools designed to simplify the process of hosting a web site. cPanel utilizes a 3 tier structure that provides capabilities for administrators, resellers, and end-user website owners to control the various aspects of website and server administration through a standard web browser.

In addition to the GUI, cPanel also has command line and API-based access that allows third party software vendors, web hosting organizations, and developers to automate standard system administration processes.

More information can be found on official web page:
http://cpanel.com/

Prerequisites

  1. Order the cPanel license (you can order via our website or at cpanel.net)

  2. Install cPanel on the server using the following command:

cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest

This command changes your session to the home directory, downloads the latest version of cPanel & WHM, and runs the installation script.

For production purposes, it is recommended to opt for Ubuntu 22.04 or AlmaLinux 8 & 9

Once you install cPanel, you can access WHM and cPanel when you create an user.

1. Login to WHM

WHM uses 2087 port, so to connect to control panel on you internet browser enter:


Login details are your server's "root" login details, which you can find on Client Area.

2. Adding new cPanel account to WHM

  1. On the left side menu press "Account Functions";

  2. Select "Create a New Account";

  3. Enter all needed data and click "Create".


3. Login to cPanel

cPanel uses 2083 port, so to connect to control panel on you internet browser enter:


Login details are the same as your entered while creating cPanel account.


4. Adding Email Account

To create an email account:

  1. Press on "Email Accounts"

  2. Enter email username, password, specify the quotas and press "Create Account".

5. Adding New FTP user

In order to add a FTP user:

  1. Select "FTP Accounts"

  2. Type in FTP account username and password, select assigned folder, specify the quotas and select "Create FTP Account".

6. Adding Database

  1. In main of cPanel control panel select "MySQL® Databases"

  2. To create a new database enter the desired database name under "Create New Database" and select "Create Database"

  3. To create a new database user enter the new database user login name, password under "Add New User" and select "Create user"

  4. To assign the database user specific data base under "Add User To Database" select which user for which database you want to add and click "Add".

7. Adding Additional Domain

  1. Sign in to the cPanel account where you want to add the domain.

  2. In the Domains section, select Domains.

  3. Click Create A New Domain.

  4. Enter the domain name in the Domain field.

  5. Uncheck the option Share document root (/home/username/public_html) with “domain.tld”.

  6. Specify the directory where the domain’s files should be stored.

  7. Click Submit to complete the process.

To add a Subdomain, follow the same step as with the Addon domain, just add a full subdomain name.

8. Password reset

In order to change your "root" user password for WHM, you need to simply connect to your server via SSH and run this command:

passwd root

It will ask you to enter and re-type your new password. If everything is correct you will see this result:

passwd: The system has successfully updated all authentication tokens.The system has updated the password for the following service: system

or

passwd: all authentication tokens updated successfully.


For more information on how to use the cPanel & WHM Control Panel can be found by visiting the following link:

Did this answer your question?