Install cPanel with Google Compute Engine

Today we are going to look at some of the basic steps you will need to take in Google Compute Engine to get yourself ready to install cPanel & WHM.

First, you will need to register an account with Google Compute Engine and can do so here. Currently, Google offers a free 365-day trial which we will gladly be taking advantage of for this installation. If you have an existing Google account, Compute Engine can be associated with this.

After you have created your Google Compute Engine account, you will be presented with a popup that will direct you to create your first VM instance.

After clicking “Create” you will be brought to the configuration page where you will create your VM instance. For this installation, we will be using CentOS 7. From the cPanel & WHM System Requirements, we know that CentOS 7 will require at least 1GB of RAM and a minimum of 20GB disk space. The RAM is already set to 3.75 GB, which exceeds the minimum, so we will only need to adjust the disk space and operating system before we continue. You can update the operating system and disk space by clicking “Change” in the Boot Disk section.

Before you continue, be sure to check the boxes under Firewall to allow HTTP and HTTPS traffic as this will be necessary for accessing the cPanel and WHM interfaces.

Be sure to check the boxes under Firewall to allow HTTP and HTTPS traffic as this will be necessary for accessing the cPanel and WHM interface

After we have made the necessary adjustments, we are ready to create our VM instance. Once your VM instance has been brought online, it will be added to your Compute Engine Console. Google includes browser-based SSH access, so for simplicity sake, we will use this option by simply clicking “SSH” next to our instance details under Connect

Once in the terminal, I was logged in as a non-root user. To change to root, use:

sudo -s

Now that you are root, perform a few minor updates and installs to get started:

yum update -y

yum install -y perl
yum install -y wget

You will need to sure that your server is using a fully qualified domain name as your hostname. To change your hostname, enter the following as root (please note, the below hostname is an example only):

You can now run the installation script as shown in our installation guide.

cd /home && curl -o latest -L && sh latest

Once you execute the install script, let the installer run its course. After the installation has completed, you should see instructions for accessing your WHM services.

Before you are able to access WHM, you will need to update the root password. To do this, enter the below command as root:


This will not ask you for the old root password, rather, register a root password of your choosing.

After the password has been updated, you will need to configure the firewall for your VM instance by creating firewall exceptions for each port cPanel & WHM uses. This can be done through the Google Compute Engine console.

From the VM Instances page, click your instance name under Name:

Then scroll down to Network interfaces and click “default” to enter the VPC Network Details:

You can find more information about this interface from Google’s Virtual Private Cloud (VPC) Network Overview documentation.

For reference, you can find a list of ports and protocols cPanel & WHM utilizes from our Knowledge Base here.

One thing to consider when choosing Google Compute Engine is that port 25, which cPanel & WHM utilizes for SMTP, is not open. Google provides additional information for sending email in their documentation here.

TNP HOST currently does not support Google Compute Engine. However,if google compute engine is available as a service with TNP HOST , you will be updated in this post.

– As on 23rd June, 2017

Was this post helpful?

Leave a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.