How to Install cpanel on google cloud

How to Install cpanel on google cloud

  • 15 Mar, 2018
  • Technology

Install cpanel on google cloud


CPanel Setup/Installation on Google Cloud



1. Login into Google Cloud Panel


2. Click "Compute Engine" in main menu


3. Click on "VM Instances"


4. Click on "Create" to create to create New Instance


5. Enter Name of New Instance under "Name" heading


6. Select zone of Instance under "Zone" heading i.e. location which you want to select for you cloud server


7. Select Machine Hardware Configuration under "Machine Type" heading

a) Select list for Basic view
b) Select Customize to configure CPU and RAM for machine manually


8. Under "Boot disk" heading select "operating system/OS" for machine

For CPanel installation use CentOS 7


a) Select "Boot Disk type" and Size of Boot Disk




9. Under "Firewall" heading select "HTTP traffic" and "HTTPs traffic" both


10. Click on "Create" to create your first instance




11. Under "Connect" Column double click on "SSH"


12. To install cpanel system need root access, type sudo -s on command prompt and press enter


13. run yum update for update


14. run yum install perl


15. run yum install wget


16. Set Hostname for instance e.g. hostname test.nameofdomain.com


17. run below command for cpanel installation

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


for cpanel install


If you face difficulty in typing command then search google for "cpanel installation url" and you will get command from search results as shown in video


Follow below Instructions if you face issue "networkmanager is installed and running" on CentOS7

systemctl stop NetworkManager.service
systemctl disable NetworkManager.service
systemctl enable network.service
systemctl start network.service

Again run cpanel installation command

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


18. Change password for root access by typing command

passwd


19. Port configuration for WHM and CPanel

WHM Panel ports - 2086, 2087
CPanel ports - 2082, 2083


20. Create a "Firewall Rule" for port opening (step 19 ports)


a) Search firewall in search box and select "Firewall Rule"
b) Click on "Create Firewall Rule"
c) Enter Name of Firewall Rule as "CPanel"
d) Enter any description for that
e) Under "Target" heading select "All Instances in the network"
f) Under "IP Source Range" enter 0.0.0.0/0
g) Under specific protocols and ports enter port "tcp:2082"
h) Click on "create" to create rule

repeat step no 20 for port "tcp:2083"


a) Click on "Create Firewall Rule"
b) Enter Name of Firewall Rule as "CPanel"
c) Enter any description for that
d) Under "Target" heading select "All Instances in the network"
e) Under "IP Source Range" enter 0.0.0.0/0
f) Under specific protocols and ports enter port "tcp:2083"
g) Click on "create" to create rule

for WHM

a) Click on "Create Firewall Rule"
b) Enter Name of Firewall Rule as "CPanel"
c) Enter any description for that
d) Under "Target" heading select "All Instances in the network"
e) Under "IP Source Range" enter 0.0.0.0/0
f) Under specific protocols and ports enter port "tcp:2086"
g) Click on "create" to create rule

for WHM

a) Click on "Create Firewall Rule"
b) Enter Name of Firewall Rule as "CPanel"
c) Enter any description for that
d) Under "Target" heading select "All Instances in the network"
e) Under "IP Source Range" enter 0.0.0.0/0
f) Under specific protocols and ports enter port "tcp:2087"
g) Click on "create" to create rule


21. To access WHM panel copy ip address mentioned under "External Ip" and mentioned port 2087.

e.g. https://domainname:2087

22. Enter username as "root"
Password - Use same password which you set as "Step No 18"


23. Click on "I Agree Go to Step 2" button at bottom


24. On "Contact Information" page mentioned your email id in "Server Contact Email Address"


25. Copy "Primary Resolver" ip address and paste it in "Secondary Resolver"


26. Click on "Save and Go to Step 3"


27. Click on "Save and Go to Step 4"


28. Go to Bottom of page and click on check box "Configure Address Records for Nameservers"


29. Copy ip address from "IP for Entry" and paste it in "IPv4" entry box


30. Click on check box Add "A Entries" for Hostname


31. Click on "Save and Go to Step 5"


32. Click on "Save and Go to Step 6"


33. Click on "Finish Setup Wizard"


34. Enable "PHP-FPM Service for CPanel"

Installation Complete