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:
- You’re interested in learning and developing cloud computing.
- 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:
- You’re simply looking for the lowest-cost hosting provider.
- You’re not open to learning the command-line-interface and cloud computing.
- 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
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
· 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.
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.
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:
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!
- Install WordPress on Google Cloud
- Configure a Domain Name
- Assign a Static IP Address
- Import WordPress Website (Optional)
- Configure SSL Certificates (Optional)
1. Install WordPress on Google Cloud
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
4. Import WordPress Website (Optional)
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 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.