---
title: How to Install cPanel and WHM on Your Server
description: "**In short:** Use a fresh server with a supported operating system and run the official installer: cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest. Installation takes about 20 to 45 minutes. Then open WHM at https://your-server-ip:2087 (or…"
url: "https://www.hyyat.com/en/knowledgebase/install-cpanel-whm/"
updated: "2026-09-29"
category: Server management / whm/cpanel control panels
---

# How to Install cPanel and WHM on Your Server

**In short:** Use a fresh server with a supported operating system and run the official installer: cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest. Installation takes about 20 to 45 minutes. Then open WHM at https://your-server-ip:2087 (or http://your-server-ip:2086), log in as root and complete the setup wizard.

cPanel provides an installation script, so you only need to download it and run it. It is best to install cPanel on a fresh server to avoid installation errors.

## 1. Run the installer

Connect to your server via SSH as root and run this single command:

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

The command changes to the /home directory, downloads the latest version of cPanel and runs the installer.

![cPanel installation in the terminal](https://www.hyyat.com/wp-content/uploads/2018/04/cpanel_1.jpg)

Installation takes about 20 to 45 minutes, depending on your server and connection speed.

## 2. Log in to WHM

When the installation finishes, open WHM in your browser at **https://your-server-ip:2087** (or http://your-server-ip:2086), replacing your-server-ip with your server's IP address. Log in with the **root** username and password.

![WHM login](https://www.hyyat.com/wp-content/uploads/2018/04/whm.png)

## 3. Complete the setup wizard

The first page after logging in is the initial setup. It shows the license agreement; accept it to continue. Depending on your cPanel version, some of the following steps may be combined or look different.

![cPanel license agreement](https://www.hyyat.com/wp-content/uploads/2018/04/2-install-cpanel-768x430.jpg)

**Networking setup:** enter a contact email address to receive important server notifications.

![Contact email in WHM setup](https://www.hyyat.com/wp-content/uploads/2018/04/3-install-cpanel.jpg)

On the same page you are asked for the server hostname. If you do not need to change it, leave it as it is.

![Server hostname](https://www.hyyat.com/wp-content/uploads/2018/04/4-install-cpanel.jpg)

Then enter your server's DNS resolvers. cPanel usually detects them automatically, or you can use public resolvers such as Google DNS.

![DNS resolvers](https://www.hyyat.com/wp-content/uploads/2018/04/5-install-cpanel.jpg)

Choose the main network interface. The IP address on this interface becomes your server's main IP. Click **Save & Go to Step 3**.

![Main network interface](https://www.hyyat.com/wp-content/uploads/2018/04/6-install-cpanel.jpg)

**Nameserver:** choose the nameserver software. The recommended option is **BIND** (newer versions use PowerDNS by default). Click **Save & Go to Step 4**.

![Nameserver configuration](https://www.hyyat.com/wp-content/uploads/2018/04/7-install-cpanel-768x731.jpg)

Enter the nameservers your server will use, such as **ns1.yourdomain.com** and **ns2.yourdomain.com**. You may first need to register these hostnames (child nameservers) at your domain registrar. Click **Save & Go to Step 5**.

![Nameservers](https://www.hyyat.com/wp-content/uploads/2018/04/8-install-cpanel.jpg)

**Services:** choose the FTP server (Pure-FTPd is the default, or ProFTPD, or Disabled), the mail server (Dovecot is the default, or Disabled), and enable **cPHulk Brute Force Protection** to protect your services against brute-force attacks. Click **Save & Go to Step 6**.

![FTP and mail services](https://www.hyyat.com/wp-content/uploads/2018/04/Screenshot-4_28_2018-1_58_08-PM.png)

![cPHulk protection](https://www.hyyat.com/wp-content/uploads/2018/04/Screenshot-4_28_2018-1_59_38-PM.png)

**Quotas:** the last step. Choose **Use file system quotas**, then click **Finish Setup Wizard** and start using your server.

![Finish the WHM setup wizard](https://www.hyyat.com/wp-content/uploads/2018/04/Screenshot-4_28_2018-2_06_52-PM.png)

**Related service:** [Hyyat Host server management](https://www.hyyat.com/en/server-management/) installs, configures, secures and monitors your cPanel/WHM server for you, with 24/7 support.

 **Need this service from Hyyat Host?**Our team handles it for you, with support replying to tickets within 24 hours at most.[Server Management](https://www.hyyat.com/en/server-management/)[dedicated server](https://www.hyyat.com/en/dedicated-server/)
