Header Ads

Free Hosting with Google Cloud Platform

Free Hosting with Google Cloud Platform

Free Hosting with Google Cloud Platform

If you want to build you own WordPress website then make sure you watch this article till end. I'm going over how to set up and host a website on the free tier of Google Cloud Platform. Never pay for hosting again when it can be free! I'll do my best to show you every single step in this post nevertheless if you have any doubt or question feel free to ask me anything in the comment section.

How to Setup a Free WordPress Website On Google Cloud Platform (GCP).  After 1 year, pay just pennies a month for light traffic website!  Hosted on highly reliable Google Servers!

This Step-By-Step Guide will show you how to configure a website from scratch!  You'll need a credit card to link to the account, and it's preferred that you have a domain name to use.  Otherwise, you can purchase a domain name from domains.google.com or NameSilo.com, or GoDaddy.com,  Namecheap.com, etc.  

Setup Google Cloud Platform
at cloud.google.com using a free Google account.

Deploy WordPress Website by Bitnami

Create a Static IP Address 
& Setup Domain Name to point to the website.

Create SSL Certificate 
& Setup SSL Certificate AutoRenew

Commands Used ( MAKE SURE you change the email address and the domain address to your own, not engrizhar.com )

sudo /opt/bitnami/letsencrypt/scripts/generate-certificate.sh -m izharmukhan@gmail.com -d engrizhar.com -d www.engrizhar.com

sudo nano /opt/bitnami/apache2/conf/bitnami/bitnami.conf

RewriteEngine On 
RewriteCond %{HTTPS} !=on 
RewriteRule ^/(.*) https://www.engrizhar.com/$1 [R,L]

sudo /opt/bitnami/ctlscript.sh restart apache

Increase Performance using a CDN Content Delivery Network)

Remove Bitnami Banner Ad
Code Used:

sudo /opt/bitnami/apps/wordpress/bnconfig --disable_banner 1

sudo /opt/bitnami/ctlscript.sh restart apache

Install WordPress Theme & Really Simple SSL Plugin

When installing the Really Simple SSL Plugin, the plugin needed to write access to the wp-config.php file, we did this step:

sudo chown daemon: daemon /opt/bitnami/apps/wordpress/htdocs/wp-config.php

We installed the Astra Theme:
Astra Theme (Just click on Add new Plugin by installing WordPress on your Blog)

If you are a photographer and you are installing ProPhotoBlog   (https://pro.photo?qbr=DNGU7813 ), which I highly recommend, you will run into an error telling you that you need to enable Imagick Module for the best performance. The Imagick module is installed in Bitnami stacks but is not enabled by default. To enable it, follow these steps:

SSH into the VM instance again.  We're going to edit the php.ini file:

sudo nano /opt/bitnami/php/etc/php.ini

and simply add the following line at the top of the file or anywhere in the file, if you want to be picky, you can scroll down in the file where it has all the extensions listed, and add it there:

Restart the Apache server and/or the PHP-FPM service if available:

sudo /opt/bitnami/ctlscript.sh restart apache
sudo /opt/bitnami/ctlscript.sh restart php-fpm


No comments

I am full time Blogger and Web Developer, and taking interest in internet marketing. I shared what I learn. I experiments with the internet and shares my knowledge with others. Sharing is carrying.