To install cPanel & WHM on your server, run 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.
Note:
We recommend that you run the installation command within a Linux screen
session. The Linux Screen utility allows you to create a shell session that will stay active through a network disruption.
The installation instructions for the Screen utility vary based on your server’s operating system and its package management tools.
- To determine whether your operating system contains the Screen utility and it exists in your path, run the following command:
- If your system uses
yum
, run thewhich screen
command. You can install Screen with theyum install screen
command. - If your system uses
apt
, run thescreen --version
command. You can install Screen with theapt install screen
command. - To run a Screen session, enter the
screen
command. Then, run the Screen installation command for your system.
- If your system uses
- If your session disconnects for some reason, log back in to your server and run the
screen -r
command. This will reconnect you to your Screen session.
Important:
- cPanel, L.L.C. designs software for commercial hosting. Therefore, we only license publicly visible, static IP addresses. We do not license dynamic, reserved, sticky, or internal IP addresses.
- We do not provide an uninstaller. If you wish to remove our software, you must reformat the server.
- Only install cPanel & WHM on a freshly-installed operating system.
- You must log in to the server as the
root
user in order to install cPanel & WHM. If you do not possessroot-level
access, contact your system administrator or hosting provider for assistance. - We recommend that you use the cPanel & WHM installer, which installs all of the services that it requires. If you install services before you install cPanel & WHM, you will encounter compatibility issues.
- New installations of cPanel & WHM default to the fast installation mode. To disable the fast installation mode, use the steps in our Customize Your Installation documentation.
source : https://docs.cpanel.net/installation-guide/install/