How to Install cPanel & WHM on Google Compute Engine and How to Install Drush

This guide explains how to install cPanel & WHM on Google Compute Engine through the Google Marketplace, including instance creation, hostname configuration, static IP setup, and WHM login. It also covers installing Drush using Composer for managing Drupal projects.

cPanel WHM Google CloudInstall Drush,Google Compute Engine

~3 min read · Updated Feb 21, 2026

1. Install cPanel & WHM on Google Compute Engine


This guide explains how to install a cPanel & WHM instance using the Google Marketplace.


Warning:

  • A valid cPanel & WHM license is required.
  • New installations can activate a free 15‑day trial license.
  • You must have at least one IPv4 address; IPv6‑only servers are not supported.

1.1 Access Google Compute Engine


  • Create or log in to your Google account.
  • Navigate to Google Compute Engine.
  • Click Start free.

1.2 Accept Terms and Enter Payment Information


  • Accept the Terms of Service.
  • Enter or confirm your payment information.
  • Click START MY FREE TRIAL.

1.3 Use the cPanel & WHM Marketplace Image


  • Search for Marketplace.
  • Search for cPanel.
  • Select the appropriate listing:

cPanel & WHM on Linux for CentOS
cPanel & WHM on Ubuntu for Ubuntu
cPanel & WHM on AlmaLinux for AlmaLinux


Click LAUNCH and enable required APIs.


1.4 Create the Instance


  • Enter a Deployment name (lowercase letters, numbers, dashes).
  • Select a Zone.
  • Select a Machine type (minimum 2GB RAM).
  • Choose Standard Persistent Disk as the Boot disk type.
  • Set Boot disk size to more than 40GB.
  • Add a network interface if needed.
  • Accept the Terms of Service.
  • Click DEPLOY.

1.5 Installation Process


cPanel & WHM installs automatically in the background. Installation takes 10–15 minutes.


Note: You cannot log in to WHM until installation completes.


1.6 Connect to the Instance


  • Click SSH to open a terminal.
  • Run the following command for root access:

sudo su -

1.7 Change the Root Password


passwd

1.8 Assign a Hostname


hostnamectl set-hostname hostname.example.com

1.9 Create the Hostname Fix Hook


mkdir -p /etc/dhcp/dhclient-exit-hooks.d/ && echo -ne '#!/bin/sh\nhostname hostname.example.com\n/scripts/fixetchosts\n' > /etc/dhcp/dhclient-exit-hooks.d/zzz-set-hostname && chmod +x /etc/dhcp/dhclient-exit-hooks.d/zzz-set-hostname

1.10 Configure a Static IP Address


  • Go to VPC Network → IP Addresses.
  • Select the IP address and click RESERVE.

1.11 Log in to WHM


Navigate to:


https://IPADDRESS:2087


Username: root
Password: the password you set




2. Install Drush


Drush is a command‑line tool for managing Drupal and must be installed per project using Composer.


Requirements:

  • SSH access
  • At least 4GB RAM (or 2GB RAM + 2GB swap)

2.1 Install Composer


Follow the instructions in the How to Set Up PHP Composer documentation.


2.2 Add Drush to composer.json


composer require drush/drush

2.3 Install Drush


composer install



Conclusion


This guide covers the complete process of installing cPanel & WHM on Google Compute Engine and installing Drush using Composer. Following these steps ensures a smooth deployment and management experience for your server and Drupal projects.


Written & researched by Dr. Shahin Siami

Related Articles

How to Restore Your cPanel Account: A Complete Guide for New System Administrators

This guide explains how new system administrators can restore a cPanel account using WHM, transfer accounts and configurations between servers, and enable diagnostic logging for transfer and restore operations. It covers essential concepts such as WHM vs. cPanel, root access, backup handling, SFTP uploads, transfer methods, and advanced debugging tools.

Continue

آموزش کامل انتقال تمام اکانت‌های cPanel از یک سرور به سرور دیگر

این مقاله نحوه انتقال همه اکانت‌های cPanel، تنظیمات سرویس‌ها، گواهی‌های SSL و IP اصلی سرور را از یک سرور قدیمی (Source) به یک سرور جدید (Target) توضیح می‌دهد. شامل نصب سرور جدید، انتقال تنظیمات، انتقال اکانت‌ها، تغییر IP، تنظیم DNS و نصب مجدد SSL است.

Continue

How to Migrate a WordPress® Installation to a cPanel & WHM Server

This guide explains how to migrate a WordPress installation from a macOS-hosted environment to a cPanel & WHM server. It covers exporting the database, uploading WordPress files, creating and importing a MySQL database, updating URLs, configuring wp-config.php, fixing broken links, and finalizing the migration.

Continue

How to Manually Transfer an Account Between Servers in cPanel & WHM

This article explains how to manually transfer a cPanel account between servers when the account is too large for WHM’s automated transfer tools. It covers creating temporary directories, compressing public_html and log files, securely transferring data with SCP, and restoring the files on the destination server.

Continue

How to Manually Migrate Horde Calendars and Contacts to Roundcube in cPanel & WHM

This article explains how to manually migrate Horde calendars and contacts to Roundcube in cPanel & WHM version 108 through 118. It covers exporting Horde data, placing it in the correct directories, and importing it into Roundcube using built‑in plugins or manual import tools.

Continue

How to Manually Migrate Accounts to cPanel & WHM from Unsupported Control Panels

This article explains how experienced system administrators can manually migrate accounts from unsupported third‑party control panels to cPanel & WHM. It covers pre‑migration steps, installation requirements, file and directory transfers, database restoration, SSL migration, and post‑migration tasks.

Continue