Install WordPress on Google Cloud Platform

Hosting WordPress on Google Cloud Platform?

With the power and features of WordPress backed by Google’s cloud infrastructure, there’s no limit to what you can accomplish! with GCP and wordpress together.

In this series of five tutorials, you will learn how to host your WordPress website on Google Cloud platform successfully. Tutorials 1-3 are required, and tutorials 4-5 are optional.

The best part about this guide is that everything you’ll be configuring is free, with the exception of your domain name and Google Cloud hosting charges (get a free $300 credit) provided by google for the next 12 months.

Is Google Cloud right for you?

Before hosting your wordpress website on google cloud platform you must be clear that is comparatively costly to host on GCP than other hosting and shared hosting provided.

The main reason why you should host WordPress on Google Cloud is because you’re developing a website that you predict will grow in size and complexity over time, and you require a platform built with the infrastructure that your website will require as it grows.

Below I have given some reason why you should choose google cloud and why not?

You should host WordPress on Google Cloud if:

  1. You’re interested in learning cloud computing.
  2. You have plans for your website to grow and become more complex over time.
  3. You’re able to find solutions to problems using StackOverflowand Google.

You should not host WordPress on Google Cloud if:

  1. You’re simply looking for the lowest-cost hosting provider.
  2. You’re not open to learning the command-line-interface.
  3. You don’t want to spend time learning Google Cloud .

How much does WordPress on Google Cloud cost?

The cost of hosting WordPress websites on Google Cloud (compute engine) varies widely, and depends on many factors. However, in most situations the cost is between $5-$25 per month for individual sites.

Google has provided a calculator to estimate the cost what services you are looking for just check it out

Source: Google Cloud Calculator

Now look for the terms and required virtual machines of google cloud platform below which must be there when you start configuring your wordpress website and you must be familiar about it.

1.  Compute Engine

Compute Engine is Google Cloud’s virtual machine (IaaS) product – and it is Google Cloud’s primary product offering, comparable to AWS’s EC2 service.

One benefit of using Google Cloud over other cloud providers is that the f1-micro machine is covered indefinitely under the Google Cloud free tier. The f1-micro machine is the smallest machine type available on Google Cloud, and it works great for running small to medium sized WordPress websites.

Note that each Google Cloud account is limited to one free f1-micro instance per month. The cost to operate an f1-micro instance outside of the free tier is around USD $3.88 per month.

2.  Network Bandwidth

Network bandwidth represents the cost of using Google’s network to serve your website’s content to visitors.

The networking estimate is based on a website that receives around 30,000 unique visitors and 90,000 page views per month and you can choose for your website as well. you can see, even on a medium traffic website, bandwidth costs are minimal and cost less than USD $1.00 per month which is a good deal if you are really willing that your website should perform very well as your are hosting your website on the google server.

The great thing about Google Cloud (and other cloud providers), is that you pay for bandwidth using a pay-as-you-go model, in which you pay only for the networking (bandwidth) resource that your website uses.

Managed hosting providers such as Siteground manage their costs by ‘limiting’ the number of monthly visitors your website is allowed to receive under a certain plan. There is no such ‘cap’ when hosting your website on Google Cloud’s pay-as-you-go model.

3.  Persistent Disk

Persistent disks are the long-term storage used by your virtual machine to store your website’s files.

Google Cloud offers two types of persistent storage: HDD (Hard Disk Drive) and SSD (Solid State Drive). You should use SSD whenever possible as it is significantly faster than HDD; that being said, it is also significantly more expensive.

In the image above, the cost for 20GB of SSD storage was calculated at USD $3.40. For comparison, that same amount of HDD space (20GB) would cost just USD $0.80.

4.  Cloud DNS

Cloud DNS is Google Cloud’s scalable DNS Service. The primary function of Cloud DNS is to ensure that when users visit your site, your URL resolves to a domain name instead of an IP address.

Though using Google Cloud DNS is optional, it is an example of a Google Cloud services that provides tremendous value, but costs very little.

·  Sample Google Cloud invoice

As a developer on Google Cloud Platform, most of the WordPress websites I host on Google Cloud end up costing on average around $12-$15 per month. However, costs can vary considerably depending on how many upgrades and additional services you add to your website.

The base cost of hosting this WordPress website on Google Cloud costs under $5 per month, however, that cost doesn’t account for additional performance upgrades such as SSD storage and Cloud DNS.

Be aware that the $7.06 static IP charge (from the image above) was incurred only because the static IP address was not assigned to a running instance. Static IP addresses that are attached to running instances are not billed at a higher rate.

As you can see, without the addition of premium features to your WordPress installation, the cost of hosting WordPress on the most basic machine type would be under $5 per month.

Before starting the tutorials

Before getting started with the tutorials below, you should be aware that:

1.  There are multiple versions of WordPress on Google Cloud

In this series of tutorials, you will be configuring your WordPress website using the Click-to-deploy (not Bitnami) version of WordPress on Google Cloud.

If you’d rather get started with the Bitnami WordPress stack, check out the tutorial here, or check out this comparison between Click-to-deploy and Bitnami.

2.  You will be using the command-line-interface

Although it looks intimidating, the command-line-interface allows you to quickly configure your website by running simple commands and scripts.

The command-line-interface adds a new layer of complexity for users who are used to configuring their website through a graphical interface such as cPanel.

If you’re not ready to use the command-line-interface, there are managed cloud hosting solutions available such as Bluehost Cloud – which offer many of the benefits of the cloud, without ever having to touch the command-line-interface.

3.  You website is built on a ‘stack’

In the very first tutorial, Install WordPress on Google Cloud, you will be configuring a virtual machine configured with the following software stack:

The default software ‘stack’ of a Click-to-deploy WordPress on Google Cloud installation.

As you can see from the image above, your WordPress website will be configured on a virtual machine that is running LAMP stack (Linux, Apache, MySQL, and PHP) on a (Debian) operating system.

4.  Free support is available

If you get stuck on any of the tutorials, check the comments at the bottom of that tutorial’s page: it is likely that the problem you’re experiencing has been solved before.

If you can’t find the solution to your problem in the tutorial’s comments, try posting your question in the comments section of the tutorial page, or on the WordPress on Google Cloud Hosting Support Group on Facebook.

The WordPress Cloud Hosting Support Group on Facebook allows you to connect with a community of other developers who host their WordPress websites on Google Cloud.

Let’s get started:

Now that you’ve learned about the pros/cons, costs, and considerations of hosting WordPress on Google Cloud, it’s time to get started deploying your website. Follow each of the following tutorials in order, and you’ll have your website up-and-running on Google Cloud in no time.

Remember, if you run into any trouble along the way, check out the WordPress Cloud Hosting Support Group and/or leave your question in the comments section of the tutorial you’re struggling with! Good luck!

1. Install WordPress on Google Cloud

In the first tutorial, you will be installing WordPress on Google Cloud using a pre-confiured LAMP stack on a Compute Engine Virtual Machine (VM).

2. Configure a Domain Name

In this tutorial, you are going to configure a domain name to work with your WordPress on Google Cloud installation. Although NameCheap is used as the domain registrar in this tutorial, you can use whichever domain name registrar you prefer.

3. Assign a Static IP Address

In this tutorial you will learn how to assign a static IP address to the machine that is hosting your installation of WordPress on Google Cloud. For this tutorial, use method 1 (Reserve an existing IP address).

4. Import WordPress Website (Optional)

If you have an existing WordPress website that you want to transfer to your new WordPress on Google Cloud installation, then this tutorial is for you. In this optional tutorial, you will use the All-in-One WP Migration plugin to quickly copy and transfer your WordPress website to Google Cloud Platform.

IMPORTANT: If you have SSL configured on the website that you are importing to Google Cloud, then you should complete the SSL tutorial (below) before this tutorial.

5. Configure SSL Certificates (Optional)

Do you want your website to load with a secure padlock icon?

 Secure | https://

If so, this tutorial is for you. In this optional tutorial you will learn how to set up free, auto-renewing LetsEncrypt SSL certificates for your WordPress on Google Cloud installation.

Did it work?

Now that you’re hosting WordPress on Google Cloud Platform, be sure to check out these other great WordPress on Google Cloud tutorials.

If you have general questions or comments about this tutorial, please feel free to leave them below. If you get stuck on a specific tutorial, please post your questions and comments on that tutorial’s page.

If you benefited from this tutorial, and would like to support my work, please like my Facebook page and subscribe to my YouTube channel.

Scroll to top