Pheonix
1- Update Centos 7 Use this command to update the server before installing cPanel. The update process will take some minutes according to your network speed and the value of your resources.
yum update -y You will be asked yes or not, that you should type y and press enter to proceed with the update.
2- Installing Perl Perl is the language that cPanel has been written with. Run the following command to make sure that Perl is installed on the server.
yum install perl 3- Installing Curl The Curl is required to download the cPanel installation script; the following command can install the Curl:
yum install curl 4- Add Hostname Cpanel requests for a hostname that should be in (FQDN) Fully Qualified Domain Name format. For example, in this topic, we will use myeserver.mydomain.com, and instead of this, you should put your own hostname. Here is the command to set it:
hostnamectl set-hostname myeserver.mydomain.com 5- Disabling Network Manager Service Network Manager service is used to connect computers; cPanel asks to remove this service or disable it when installing cPanel.
service NetworkManager stop chkconfig NetworkManager off 6- Disable SELinux Temporarily SELinux is the main security defender of the Linux Kernel, and it is better to be disabled to prevent any access issues when we install cPanel on CentOS Server. You can use the below command to disable it temporarily.
setenforce 0
Installing cPanel With Trial License
You can use this code to install WHM / cPanel. The cPanel installation process will take some minutes according to your network speed and the value of your resources.
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest Based on the resources of your server, the installation may take about an hour to 2 hours.