Web Hosting: Secure Configuration of cPanel and WHM

pre-requisites for cpanel-whm installation

cPanel and WHM (Web Hosting Manager) help greatly in controlling and managing the web servers. The users can easily control their web hosting servers, email accounts, FTP, security settings, databases, application and more through easy-to-use GUI and automation options of control panel.

Before we move further, let’s see the pre-requisites for cPanel/WHM installation:

Network: Web server users need to have a registered hostname, valid IP address and an Ethernet device.

Hardware: cPanel supported OS, 226 MHz processor, 768 MB to 2GB RAM, and 20-40 GB disk space are the basic hardware requirements for the cPanel/WHM installation.

Log in to server using SSH: The users running their own hosting panel can connect to the servers by using SSH (Secure Shell) to login to their servers. For better security, move the SSH access from the default port 22 to a different port.

Installing cPanel: You can install the cPanel on your server by using the right cPanel installation script. You can download and run the cPanel script on your server. 2GB RAM and 40GB disk space are ideally required for its installation. Now run the below-mentioned command-

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

It will get completely configured on your server in 45-60 minutes.

WHM Security Settings:

Set Server Time: Once the cPanel/WHM is configured, go to Home then Server Configuration and set the Server Time by selecting the current time as well as the Time Zone. Finally click on Sync Time with Time Server.

Tweak Settings: Go to Tweak Settings in Server Configuration and check ‘ioncube’ displayed on the right side. It is important to be enabled for running Softaculous that will allow the installation of web applications. Under Tweak settings, it is also important to set a limit for sending emails per hour as per your requirements.

Security Center: Under Security Center, go to Compiler Access. Experts recommend to disable Compiler Access to protect it from any exploitations.

These are some of the important steps to securely configure cPanel/Web Hosting Manager on the server.