My warm greetings to everyone in this neighbourhood.
Today, I like to share my experience and knowledge about installing and configuring cPanel & WHM server in Google Cloud Platform.
Step - 1
I created a Compute Engine VM instance with CentOS 7 operating system and added a network tag(for firewall rules) also hostname(uswest.incapio.org.in).
Step -2
Before installing the actual cPanel & WHM, I have gone through some basic tips and tricks. At first, I have backed up IP tables.
and then stopped and disabled firewall service.
Lastly, stopped and disabled the network manager.
Step -3
Created Both ingress and Egress firewall rules with the following ports.
Step - 4
Installed the Perl
Step - 5
Installed cPanel and WHM latest version
and it took about 20-30 minutes to complete the installation process. Once completed, I logged into my cPanel & WHM server using admin credentials, the username(root) and the password. I have configured the root password using the command via SSH.
Step - 6
I have restored IP tables
and then enabled and started the firewall service. Lastly, enabled and started the network manager.
Step - 7
Activated trial license
Step -8
Configured the hostname using the change hostname option under the networking setup and added A entry using the "Add an A Entry for Your Hostname" under the DNS functions.
Step - 9
Under the service configuration, installed a wildcard SSL for the WHM services using "Manage Service SSL Certificates".
Step - 10
By default, Google does not permit to send mails from the VM instance. So I configured the "Smarthost" solution using SMTP2Go with Exim.
Step -11.
Finally, I added the DMARC record to my domain, and everything is working accurately.
Best Regards,
Manoj Kumar @ Incapio
Today, I like to share my experience and knowledge about installing and configuring cPanel & WHM server in Google Cloud Platform.
Step - 1
I created a Compute Engine VM instance with CentOS 7 operating system and added a network tag(for firewall rules) also hostname(uswest.incapio.org.in).
Step -2
Before installing the actual cPanel & WHM, I have gone through some basic tips and tricks. At first, I have backed up IP tables.
Code:
iptables-save > ~/firewall.rules
Code:
systemctl stop firewalld.service
systemctl disable firewalld.service
Code:
systemctl stop NetworkManager
systemctl disable NetworkManager
Created Both ingress and Egress firewall rules with the following ports.
Code:
TCP:20,21,22,25,26,37,43,53,80,110,113,143,443,
465,579,587,783,873,953,993,995,2077,2078,2079,2080,
2082,2083,2086,2087,2089,2095,2096,2195,2703,3306,6277,
11371,24441
UDP:53,443,783,873,6277,24441
Installed the Perl
Code:
install Perl via the yum -y install perl command
Installed cPanel and WHM latest version
Code:
cd /home && curl -o latest -L https://securedownloads.cpanel.net/latest && sh latest
Code:
passwd root
I have restored IP tables
and then enabled and started the firewall service. Lastly, enabled and started the network manager.
Code:
iptables-restore < ~/firewall.rules
systemctl start firewalld.service
systemctl enable firewalld
systemctl enable network.service
systemctl start network.service
Activated trial license
Step -8
Configured the hostname using the change hostname option under the networking setup and added A entry using the "Add an A Entry for Your Hostname" under the DNS functions.
Step - 9
Under the service configuration, installed a wildcard SSL for the WHM services using "Manage Service SSL Certificates".
Step - 10
By default, Google does not permit to send mails from the VM instance. So I configured the "Smarthost" solution using SMTP2Go with Exim.
Step -11.
Finally, I added the DMARC record to my domain, and everything is working accurately.
Best Regards,
Manoj Kumar @ Incapio