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 the basic installation process required, and tutorials 4-5 are optional for you needs.

The best about this tutorial is that everything you’ll be configuring is free on Google server, with the exception of your domain name and Google Cloud hosting charges (get a free $300 credit) provided free 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 it is comparatively costly to host on GCP than other hosting and shared hosting provided like Godaddy and many more in the market.

The reason behind why you should host WordPress on Google Cloud is because you’re developing a website keeping in mind and you believe that will grow in size and complexity over time and you would require more resources and support to manage, and also you require a platform built with the infrastructure that your website will require as it grows in future.

Below I have provided some reason which can help you decide to choose google cloud or other hosting.

You should host WordPress on Google Cloud if you think:

  1. You’re interested in learning and developing cloud computing.
  2. You have all set plans for your website to grow and become more complex over time where you require GCP.

You should not host On GCP if:

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

How much does WordPress Cost on Google Cloud?

Hosting  cost for 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 simple calculator to estimate the cost depending on what services you are looking for just check it out here

Source: Google Cloud Calculator

Now look for the terms and required virtual machines of google cloud platform which require when you start configuring your wordpress website and you must be familiar about it to avoid configuration errors.

1.  Compute Engine

Compute Engine is Google Cloud’s virtual machine (IaaS) product – and it is Google Cloud’s primary product offering free services for 12 months to begin and start learning Compute Engine.

One advantage of exploitation Google Cloud over alternative cloud suppliers is that the f1-micro machine is roofed indefinitely beneath the Google Cloud free tier.
The f1-micro machine is that the smallest machine sort out there on Google Cloud, and it works great for running small to medium sized WordPress websites.
Note that every Google Cloud account is proscribed to at least 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

The primary operate of Cloud DNS is to make sure that once users visit your web site, your universal resource locator resolves to a site name rather than Ip address 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 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 tutorials, you will be configuring your WordPress website using the Click-to-deploy (not Bitnami) version of WordPress.

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.  Your website is built on a ‘stack’

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 concerning the pros/cons, costs, and issues of hosting WordPress on Google Cloud, it’s time to induce started deploying your web site.
Follow every of the subsequent tutorials so as, and you’ll have your web site 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 initial tutorial, you may be putting in WordPress on Google Cloud employing a pre-confiured LAMP stack on a Compute Engine Virtual Machine (VM).

2. Configure a Domain Name

Here, 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 may find out how to assign a static IP address to the machine that’s hosting your installation of WordPress on Google Cloud.
For this tutorial, use technique one (Reserve an existing IP address).

4. Import WordPress Website (Optional)

If you’ve got existing WordPress website that you simply need to transfer to your new WordPress on Google Cloud installation, then this tutorial is for you.
In this optional tutorial, you may use the All-in-One WP Migration plugin to quickly copy and transfer your WordPress website to Google Cloud Platform.
IMPORTANT: If you’ve got SSL designed on the website that you are importing to Google Cloud, then you need to 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, you can refer this tutorial. In this  tutorial you get to know 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’ve got general queries or comments concerning this tutorial, please be at liberty to depart 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