In this blog, we are going to show you how to host a WordPress website for free using Google Cloud. We’ll stroll you thru the steps of developing a digital desktop instance, putting in WordPress, configuring your domain name, and installing SSL on the website. By the end of this tutorial, you’ll have a fully functional WordPress website up and running on GCP for free without spending a dime.
A Google account: To use GCP, you’ll need to have a Google account. If you don’t have one already, you can create one for free. click here to create one now.
A domain name: If you want to use your custom domain name for your website, you’ll need to purchase one from a domain registrar.
click the link below which will take you to google cloud platform. Once you are there create a free tier accout for free. credit card will be required while creating the account but you wont be charged.
On your google cloud dashboard click the 3 dots on the top left corner of your screen and clock market place.
Search for “WordPress Bitnami” and scroll down until you find the one written “WordPress Certified by Bitnami and Automattic” and click on it.
On the next page, click launch and you’ll need to enable the required APIs. Click the Enable button and it’ll install those APIs which could take about a few minutes.
It will take a few seconds or a minute to complete so just wait for it.
now configure your server VM instance,on the following:
Under Machine family series
For Boot DiskÂ
Make sure that “Allow HTTP traffic from the internet” and “Allow HTTPS traffic from the internet” are unable and click deploy.
If the installation is successful, copy the given temporal password and click the Admin URL to login into your WordPress admin panel
On the next page for:
And then click “Login“
change the following:
copy the new password and save it since we will use it for future logins. then click update profile.
The given IP address assigned to your WordPress is temporary. You want to set up a static IP address so the IP does not change when you reboot your server or update any of the configurations.
Go back to the google cloud page, on the top left corner of your screen select the navigation menu.
On the navigation menu select: Compute Engine and VM instances. then choose your VM instance and select it.
Â
On network interfaces click under the name, and on the left side click IP address
On the next page Select Reserve External static address.
Do the following:
copy your new IP address
Go to your domain provider select DNS records and add the following custom resource records.
First record:
second record:
This might take up to an hour to point, if you want to check your status go to whatsmydns.com paste your domain name there and search if the IP address is the same as the one you just assigned then you are good to proceed
Â
Go back to your Google Cloud, deployment manager and select SSH
paste and click enter
sudo /opt/bitnami/bncert-tool
Put your domain name like this:
enter your domain under the Domain list. You want to put your domain, followed by a space, and then www.yourdomain for example if my domain is kofnet.co.za then I will write it like this “kofnet.co.za www.kofnet.co.za”
Then hit Enter.
follow the screenshot below: put y for yes and n for no
Then Enter a valid email address, and type yes if asked “Do you agree to these changes?”
Now your website should be ready for use.
We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.