8.Disable Network Manager.
The Network Manager service automates the network’s settings. It also disrupts connections to the IP addresses that reside in the ipaliasesmodule. You must disable Network Manager to install cPanel & WHM.
To disable Network Manager, run the following command:
9.Run the cPanel & WHM installation script.
To install cPanel & WHM, run the following command:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
This will take a while. When you see a line that resembles Thank you for installing cPanel & WHM 11.78!, the server has installed cPanel & WHM.
10.Change the root password.
To change the root user’s password, perform the following steps:
Run the passwd command.
Enter a new password.
Enter the new password again.
A confirmation message will appear.
11.Create the hostname fix hook.
To configure VPS deployments, many cloud hosting providers use the dhclient script. This script includes the configuration of the instance’s hostname. But, the dhclient script may not preserve the locally-configured hostname. So, hosting providers use scripts to work around this issue. For example, Google Cloud Platform Services™ uses the google_set_hostname script.
The workaround scripts may interfere with WHM’s Change Hostname feature (WHM >> Home >> Networking Setup >> Change Hostname). These can cause hostname configuration issues and a
12.Configure a firewall.
To configure the firewall to allow cPanel & WHM traffic to pass through, perform the following steps:
Click the instance name. The instance’s profile interface will appear.
Under Network interfaces, click default. The VPC Network Detailsinterface will appear.
Click Firewall rules.
Click Add firewall rule. The Create a firewall rule interface will appear.
Enter the details for the firewall rule.
Click Create. The VPC network details interface will reappear.
Repeat steps 3 – 5 for each firewall rule.
For information on how to configure firewall rules at Google Compute Engine, read Virtual Private Cloud (VPC) Network Overview.
For a list of ports and services that cPanel & WHM uses, read our How to Configure Your Firewall for cPanel Services documentation
13.Configure static IP address.
By default, Google assigns ephemeral IP addresses to VM instances. They will remain assigned to the server as long as the VM is active, but will change if you turn off and then turn back on a VM..
To configure a static IP address for the server, perform the following steps:
On the VPC network details interface, click External IP addresses. The External IP addresses interface will appear.
Click the arrow next to Emphemeral.
Select Static. A new window will appear.
In the Name text box, enter a name for the IP address.
14.Log in to WHM.
To log in to WHM, perform the following steps:
Navigate to the following URL, where IPADDRESS represents your server’s IP address:
Enter your username and password.
Click Log in.