How to Install cPanel/WHM on CentOS 7 Updated on October 10, 2024 by InMotion Hosting Contributor 1 Minutes, 57 Seconds to Read When setting up a new CentOS 7 server, you may find yourself looking for control panel software that will allow you to manage your websites and web applications in a graphical user interface. One of the most popular web hosting control panel solutions is cPanel/WHM. This software gives you a comprehensive control panel interface that allows you to manage and customize many different aspects of your server in a user-friendly environment. In this article, we will outline how to prepare your CentOS 7 server and install cPanel/WHM using the command-line interface. Before performing the steps in this guide, please ensure that you have set up root SSH access on your server. Topics Include: Preparing for Installation Installing cPanel/WHM Warning: You should only install cPanel/WHM on a panel-free environment like bare metal servers or cloud VPS hosting. Backup your server, or take a server snapshot, before proceeding. Prepare for Installation Before you can install cPanel/WHM on CentOS, you will first need to disable your server’s firewall, the Network Manager, and SELinux. First, stop the service using the following command:systemctl stop firewalld.service Then, disable the server using the following command:systemctl disable firewalld.service After disabling the firewall, you will need to stop the Network Manager service using the following command:systemctl stop NetworkManager Once the service is stopped, you can disable Network Manager using the following command:systemctl disable NetworkManager Next, you will need to disable SELinux by editing the following file with the nano command:nano /etc/selinux/configWith the file editor open, you can disable SELinux by changing the line that reads SELINUX=enabled to SELINUX=disabled. Next, you will need to install the programming language perl using the following command:yum install perl -y Once perl is installed, you can then proceed with the next steps to install cPanel/WHM on your server. Install cPanel/WHM on the Server Next, change directory into the /home/ folder with the following command:cd /home Next, download the latest release of cPanel/WHM using the following curl command:curl -o latest -L https://securedownloads.cpanel.net/latest Once the file has downloaded, you can run the installation script with the following command:sh latest After the process finishes, cPanel/WHM should now be installed on your system. Congratulations, you have successfully installed WHM/cPanel on CentOS 7! Share this Article InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles How to Configure cPanel in WHM Resetting the cPanel Password in WHM How to Import Email Accounts and Forwarders into cPanel How to Install WHMCS With Softaculous What is your default PHP.ini file? How to Create / Delete an FTP Account in cPanel How to Park a Domain in cPanel How to Permanently Delete Trash in File Manager The Complete Guide to cPanel Backups How to Delete a cPanel in WHM
Thank you for letting us know, you are absolutely correct! I have updated the article with accurate capitalization.
should I enable network manager after cpanel install and before any reboot otherwise system will not respond after reboot. right?
Hello Maher! I checked with a senior technician and confirmed that cPanel sets up networking itself. You shouldn’t need to use network manager after installing it. Hope that helps!