How to Install WordPress on Google Cloud for Beginners

September 28, 2017Leron AminComments Open

how to host wordpress on google cloud

Interested in hosting WordPress on Google Cloud Platform?

With the power of WordPress backed by Google’s cloud infrastructure, there’s no limit to what you can accomplish!

In this series of five tutorials, you will learn how to host your WordPress website on Google Cloud platform. 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).

list of google cloud tutorials

  • Is Google Cloud right for you?

  • If all you’re looking to do is host a simple WordPress website, then Google Cloud is not the best option for you; managed hosting providers are cheaper and easier to use. There are even managed cloud hosting providers such as Bluehost Cloud (view tutorial).

    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.

    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 StackOverflow and 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.

    Below is a breakdown of a the typical estimate for hosting WordPress on Google Cloud for USD $4.43 per month (Check the image below for a break-down of each section):


    cost breakdown wordpress on google cloud
    The image above represents a very typical cost estimate for hosting a WordPress website on Google Cloud for $4.43 per month. Source: Google Cloud Calculator

    1. Compute Engine

    2. Compute Engine is Google Cloud’s virtual machine (IaaS) product – and 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.

    3. Network Bandwidth

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

      The networking estimate in the image above is based on a website that receives around 30,000 unique visitors and 90,000 page views per month. As you can see, even on a medium traffic website, bandwidth costs are minimal and cost less than USD $1.00 per month.

      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.

      networking bandwidth costs of using siteground
      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. [1]
    5. Persistent Disk

    6. 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. [1][2][3]

      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.

    7. Cloud DNS

    8. 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. From the image above, the cost of using Cloud DNS is an additional USD $0.23 per month. [1][2]

  • 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.

    wordpress on google cloud hosting cost sample invoice
    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

    2. wordpress solutions google cloud marketplace
      One Page Zen offers support and tutorials for the two most popular WordPress solutions available in the Marketplace catalog – Bitnami and Click-to-deploy.

      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.

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

    4. the linux 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.

    5. You website is built on a ‘stack’

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

      wordpress click to deploy 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.

    7. Free support is available

    8. 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.

      wordpress cloud hosting facebook support group
      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).

    install wordpress on google cloud platform

    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.

    transfer domain name to google cloud platform

    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).

    reserve static ip google cloud

    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.

    transfer wordpress website to google cloud

    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.

    free ssl certificate setup wordpress on google cloud platform click to deploy lamp stack

    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.

    Thanks,

    signature

    Leave a Reply

    Your email address will not be published. Required fields are marked *

    Made with by

    © 2020 One Page Zen Systems, LLC  
    Legal  |  Privacy Policy  |  Affiliate Disclosure  |  Contact  

    Join our Mailing List!

    Exclusive early access to the latest tutorials

    Monthly update with a list of upcoming tutorials

    Special access to members-only events and webinars