How to Install cPanel on Google Cloud

Install cPanel & WHM on AWS EC2 Instance
Install cPanel & WHM on AWS EC2 Instance
December 16, 2019
Installing cPanel & WHM on Google Compute Engine
Installing cPanel & WHM on Google Compute Engine
December 16, 2019

How to Install cPanel on Google Cloud

How to Install cPanel on Google Cloud

How to Install cPanel on Google Cloud

How to Install cPanel on Google Cloud

How to Install cPanel v76 on Google Cloud with CentOS 7 and set up Email and Security using Web Host Manager (WHM). This version simplifies the WHM setup in just two clicks compared to the installation of old cPanel version.

This guide will help you learn how to install cPanel v76 on Google Compute Engine VM Instance.

cPanel is a server management software for website owners which comes with a 15-day trial.

Click here to activate cPanel License

Steps to install cPanel and WHM

  1. Create the VM Instance
  2. Verify cPanel & WHM license history and validity
  3. Setup Cloud DNS
  4. Setup Firewall rules
  5. Install cPanel
  6. Set up Hostname on Google Cloud
  7. Agree to Terms and Conditions
  8. Setup Email in WHM
  9. Activate cPanel

Cpanel and WHM can also be installed on other cloud platforms. You can choose any one from below.

Here are some options.

PlatformMachine TypeCost (Monthly)
Digitalocean4GB RAM – 2vCPU$20
Google Cloud PlatformStandard 3.75 GB RAM$25
Amazon Web ServicesA1- Large 4 GB RAM$35
Check how to install cPanel on AWS.

Create the VM Instance

Go to Compute Engine >> VM Instances and click Create Instance

In Name provide a name for your Instance

In Region choose the region closest to your visitors

In Machine Type choose 3.75 GB memory 1vCPU

In Boot disk click Change and choose CentOS 7. In Size enter, you’re required size, the minimum should be 40 GB and click Select

In Firewall check both Allow HTTP traffic and Allow HTTPS traffic

Click Create

It will take a while before the VM instance will be available for you

Verify cPanel & WHM license history and validity

Once your VM instance is created you will be provided with an external IP address which is used to license your cPanel. So you need to verify if the IP address has a valid 15-day trial license. So visit verify cPanel license and enter your external IP address and click Verify License. If the IP address does not have a valid license you can restart your VM instance. Then a new IP will be assigned. Then you can check again.

Reserve your IP address

If your IP address has a valid license you can proceed to reserve your IP address by going to VPC Networks >> External IP Addresses reserve your IP address to Static.

Setup Cloud DNS

Please follow this guide to setup Cloud DNS and point your domain to Google Cloud.

Once you have created DNS Zone, you need to create one additional A record for the cPanel subdomain in your Cloud DNS.

Click Add record set

In Name enter cpanel

Select Resource Record Type to "A"

IPv4 Address with the IP address of your instance that you have reserved earlier.

Leave everything to default.

Click Create

Now your VM instance is configured and ready to setup Firewall rules for cPanel installation.

Setup Firewall rules

cPanel & WHM uses some ports to manage the server, so you need to create a firewall to provide access to these ports.

Go to VPC Network >> Firewall rules and click Create Firewall rules.

In Name enter cpanel

In Targets select All instances in the network

In Source filter select IP ranges

In Source IP ranges enter 0.0.0.0/0

In Protocols and ports check TCP and enter 2077, 2078, 2082, 2083, 2086, 2087, 2096, 3306, 53. Also, check UDP and enter 53.

Click Create.

Install cPanel

Go to Compute Engine >> VM Instances and click the SSH button right next to your instance to open the terminal window in the browser.

Once the terminal is opened enter the following commands one by one.

sudo -s
yum update
yum install perl
yum install wget

Then set the hostname with your domain name. Replace yourdomainname.com with your domain name.

hostname cpanel.yourdomainname.com

Now stop firewall and disable Network manager.

systemctl stop firewalld
systemctl stop NetworkManager
systemctl disable NetworkManager

Download the latest cPanel and install it by running the following command.

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

It will take around 30 – 40 min to complete the install. Don’t close the terminal until the setup is completed.

Once the setup is completed, you can set the root password by executing the following command.

passwd

Save your password safely, you will need that to login to your WHM.

Set up Hostname in Google Cloud

Google Compute Engine won’t preserve the hostname (cpanel.yourdomainname.com) you set and changes it to default hostname automatically, so this may result in a locked cPanel & WHM license. To preserve the hostname follow the below simple steps.

cd /etc/dhcp/dhclient-exit-hooks.d/
sudo nano set-hostname.sh

Paste the following contents and hit Ctrl+X followed by Y to save the file. Remember to replace yourdomainname.com with your domain name

#!/bin/sh
hostname cpanel.yourdomainname.com
/scripts/fixetchosts

Set correct permissions to the file you created

chmod 744 set-hostname.sh

That’s all now your cPanel is installed and ready to finish the WHM setup

Setup WHM

Open your browser and navigate to https://cpanel.yourdomainname.com:2087 . At this point, some browsers show a warning message about HTTPS and don’t allow you to visit the WHM page. In this case, you can use your IP Address instead of the domain name (https://IP_ADDRESS:2087). It will take some time for the SSL certificate to get issued by cPanel.

Install cPanel on Google Cloud

Enter username as root

Enter the password you created by running the command passwd

Now you will be logged into your WHM.

Click Agree to All.

Provide your email address.

Install WHM on Google Cloud

Click Finish

Now you will be taken to the WHM home page.

Setup Email in

Install cPanel & WHM on Google Cloud

WHM

In Google Cloud Platform port 25, which cPanel & WHM utilizes is not open. So you need to create an account with Mailgun or Sendgrid and integrate with WHM for emails.

Google provides additional documentation for sending email from Compute Engine Instances here.

Allow SMTP on Port 2525

Go to Service Configuration >> Service Manager

Tick both boxes next to Exim Mail Server (on another port)

Change Allow Exim to listen on a port other than 25 to 2525

Click Save

Email Configuration

As the standard email port is blocked in Google Cloud, you need to configure a third-party email service provider to send emails. Here we can use Mailgun to configure emails in cPanel.

Make sure you have these DNS records.

A record pointing to mail.domain.com

MX record with 0 priority pointing to mail.domain.com

Mailgun Configuration

Go to Service Configuration >> Exim Configuration Manager.

Click the Advanced Editor tab.

In the CONFIG section, under domainlist local_domains enter lsearch;/etc/localdomains : localhost : cpanel.yourdomainname.com : [GOOGLE INSTANCE NAME] : @

In daemon_smtp_ports enter 465 : 25 : 587 : 2525

In the Section: AUTH box enter.

mailgun_login:
driver = plaintext
public_name = LOGIN
hide client_send = : Default SMTP Login : Default Password

In the Section: PREROUTERS box enter.

mailgun:
driver = manualroute
domains = ! +local_domains
transport = mailgun_transport
route_list = * smtp.mailgun.org::2525 byname

In the Section: TRANSPORTSTART box enter.

mailgun_transport:
driver=smtp
hosts_try_auth = smtp.mailgun.org

Activate cPanel

cPanel is a subscription-based software, you can activate your license.

Save the configurations, that’s everything about cPanel & WHM on Google Cloud.

2371 Comments

  1. You could definitely see your expertise in the article you write.
    The arena hopes for more passionate writers like you who are
    not afraid to say how they believe. All the time go after your heart.

  2. RobertDraks says:

    Pills prescribing information. Short-Term Effects. where can i buy accupril tablets Some what you want to know about medicines. Get information here.

  3. Nillmople says:

    Levitra Contra Reembolso CligiogBig cheap generic cialis Elodalyloags mejor cialis o viagra

  4. our blog says:

    magnificent issues altogether, you just received a new
    reader. What may you recommend in regards to your publish
    that you made a few days in the past? Any certain?

  5. Nillmople says:

    Billige Viagra Kaufen CligiogBig best site to buy cialis online Elodalyloags Worldwide Shipped Ups Pyridium No Physician Approval Garland

  6. Clipart ist ein grafisches Bild in jeder Richtung, das Informationen enthalt, sei es ein Hintergrundbild, ein Objekt oder Element, eine Landschaft oder ein Familienfoto.
    Alle Grafiken in elektronischer Form konnen dem Begriff Clipart zugeordnet werden. Sie sind in zwei Hauptgruppen unterteilt: Raster-Clipart und Vektor-Clipart.
    Rasterbilder sind Bilder auf Pixelbasis, die aus kleinen Pixeln, Quadraten mit jeweils eigenen Farben oder Schattierungen bestehen. Insgesamt bilden sie ein Bild, das wir als Gesamtbild wahrnehmen.
    Ein gutes Beispiel fur eine Sammlung von Cliparts finden Sie auf dieser Quelle.
    Pixelbilder werden mit Hilfe von Fotos erhalten, Scannen, Rastereditoren von Computergrafiken, sind in allen Bereichen des Grafikdesigns weit verbreitet.

  7. Compre Viagra, Cialis y Levitra en linea: de esta manera puede ahorrar dinero, realizar compras rapidas y mantenerse en el anonimato.
    https://lcv5.blogspot.com/

  8. LarryAidek says:

    Drug information. Cautions.
    buy zofran without prescription
    Best about medicine. Read now.

  9. KhabirLig says:

    Parents have a tendency to notice vital strabismus and produce it to the eye of their primary care supplier. L e a r n i n g O b j e c t i v e s Upon reviewing this document, the pharmacist will be able to: 1. Metabolism of vitamin D and estrogen, as measured by plasma metabolites, macromineral (particularly calcium) metabolism, and immune function have been proposed as related to a perform for boron in humans (Nielsen, 1998; Nielsen and Penland, 1999; Samman et al gastritis diet лучшие [url=http://www.euromilk.org/fileadmin/pacificu-edu/buy-cheap-macrobid-online-no-rx/]generic 100 mg macrobid fast delivery[/url].
    Chronic hypertension by itself is not an indication must be monitored extra carefully for the frst 48 hours befor caesarean supply. Particular care is required Durant Maneuver throughout endometrial ablation and myomectomy of fbroids this maneuver entails putting the affected person in the left with intramural elements so as not to overshoot the lateral decubitus position (Trendelenburg) in order to remaximum penetration depth. Blocking has its own variation of the ready position, and serving doesn’t use it infection 7 weeks after birth [url=http://www.euromilk.org/fileadmin/pacificu-edu/buy-cheap-myambutol/]purchase line myambutol[/url]. These mechanisms might alone mally anti-atherogenic, are altered to lipoproteins with or in live performance affect common immunity. Once the thesis protocol is accredited the candidate begins his research work beneath direct supervision of guide and coguides. The sensation passes up the spinal roots S2, S3 and S4 and in untrained bladder (kids), there units in movement a reflex which automatically contracts the detrusor and results in voiding virus ti [url=http://www.euromilk.org/fileadmin/pacificu-edu/order-online-roxithromycin-cheap/]discount roxithromycin line[/url]. Temporal tendencies and misclassification in residential 60 Hz magnetic area measurements. Most of tant examinations must be performed to enhance the these assays involve nonstandardized reagents and have total detection rate. This is consistent with the way in which that St JohnпїЅs wort appears to ranges of ethinylestradiol anxiety symptoms related to menopause [url=http://www.euromilk.org/fileadmin/pacificu-edu/purchase-cheap-serpina-no-rx/]buy generic serpina pills[/url]. Setp 3: Constructing the positive relation-based formal context to discover ad ditional matches. Dx is most likely Epididymo-orchitis extra findings might be erythema and swelling of the testis urine dipstick: nitriteand/or leukocyte esterase-constructive scrotal ultrasound: proof of abscess, hyperaemia, tt: examine the link emedicine. Because natural medicines are pure, there isn’t a cause to keep away from these dietary dietary supplements in pregnancy erectile dysfunction medication levitra [url=http://www.euromilk.org/fileadmin/pacificu-edu/buy-online-cialis-professional-cheap/]purchase cialis professional online pills[/url].
    Application of lime or dolomite can stop and rectify this situation, as does manure. Complete charts can be discovered at Disorders of development and growth are ofen associated. The variety of incorrect steps is recorded because the study topic walks between two lines in a determine eight (46) arrhythmia effects [url=http://www.euromilk.org/fileadmin/pacificu-edu/order-coreg-no-rx/]cheap 12.5 mg coreg with mastercard[/url]. If no enchancment after 48 hours or suspect Staphylococcal pneumonia use cloxacillin or flucloxacillin instead of penicillin. Antvenom is expensive and carries the danger of causing severe anaphylactc reactons (as it is derived from horse or sheep serum). Role of myeloperoxidase in stomach aortic aneurysm formation: mitigation by taurine erectile dysfunction doctor mn [url=http://www.euromilk.org/fileadmin/pacificu-edu/purchase-online-super-viagra-cheap/]discount super viagra 160 mg line[/url]. Develop and test a survey technique using feminine and cub survival of bears as an indicator to population status. Preoperative anti-tumor necrosis issue remedy diagnostic device that differentiates infammatory from functional intestinal disorders. Whereas a easy excretion of poisons is feasible Figure 2: Diagram of the ground regulation system through the deposition phase, structural and useful modifications are discovered within the impregnation Reciprocal relationships (arrows) between capillary system (capillaries, lymph vessels) phase menstrual disorder [url=http://www.euromilk.org/fileadmin/pacificu-edu/purchase-online-tamoxifen-cheap/]generic 20 mg tamoxifen free shipping[/url]. Blood fow afects complexion, as well as the therapeutic process, which is significant to the profitable outcome of the remedy. Cancer danger in placebo within the therapy of lupus systemic lupus: an up to date international glomerulonephritis. A fifty six-yr-old woman presents to the hospital because of signs of dyspnea, blurry vision, and headaches antifungal lozenges [url=http://www.euromilk.org/fileadmin/pacificu-edu/order-cheap-mentax-no-rx/]order mentax uk[/url].
    Association of polychlorinated biphenyls with hypertension in the 1999 2002 National Health and Nutrition Examination Survey. A vasopressin analogue does not produce therapeutic impact through vasopression V-2 receptor during which of the following: 1. Isolated hereditary cataracts are normally transmitted in an autosomal dominant pattern, although autosomal recessive and X-linked forms have been reported symptoms genital herpes [url=http://www.euromilk.org/fileadmin/pacificu-edu/order-septra-online-in-usa/]buy septra cheap[/url].

Leave a Reply

Your email address will not be published. Required fields are marked *