Skip to main content
WordPress made easy with the drag & drop Total WordPress Theme!Learn More

How to Install WordPress on the Google Cloud

Last updated on:
  1. 1. Introduction to Cloud Computing with WordPress
  2. 2. How to Install WordPress in DigitalOcean
  3. 3. How to Install WordPress in Microsoft Azure
  4. 4. Currently Reading: How to Install WordPress on the Google Cloud
  5. 5. Install WordPress in AWS – Amazon Web Services

Today we’re going to take a look at how to install WordPress as a one-click image in Google Cloud – Google’s very own cloud infrastructure. Among the major cloud providers in the market, Google has one of the most competitive pricing policies compared to Amazon Web Services and Microsoft Azure. It’s cloud network is powered by Google’s own infrastructure that handles over 40,000 search queries per second.

One of the things I love about WordPress is it’s widespread popularity. Thanks to this very reason, almost every cloud computing company provides its users with a “one-click installation” of WordPress. Some call it an “app”, while others call it a “template” or an “image”. Call it what you will – but the most important fact is that setting up WordPress in the cloud takes only a few clicks.

NOTE: One important point before we begin. If this is your first time installing WordPress in the cloud – i.e. from an actual cloud provider, please don’t host your live website right away. I suggest you test everything for at least 2-4 weeks before migrating your WordPress blog or website to the cloud.

WHY? Cloud providers like Google Cloud, AWS and Microsoft Azure only have limited support for your WordPress website. If you run into a plugin conflict or some hosting or malware issues, you’re going to have to solve it yourself.

Luckily, there’s a solution for you. You can either:

  • Go for a third party managed cloud provider like Cloudways (Check out our review) or
  • Go for managed WordPress hosting like WPEngine (we at WPExplorer use WPEngine and love it!)

Some Technical Tea

There are a few basic terms we need to learn before we get with the tutorial. The idea behind this is to inform you of all the various products Google Cloud has to offer. Once you develop and interest in something you see, you can start building your own apps in them!

Projects

google-cloud-wordpress-002-project-screenProject Dashboard

Anything and everything that you want to do in Google Cloud is enclosed (or encapsulated) within a project. Inside a project, you can use or deploy the various sub-products Google Cloud has to offer. They include App Engine, Compute Engine, Google APIs, Google Cloud Storage, BigQuery, or directly install a pre-built solution. (More on this a bit later)

Billing Accounts

Each project that you create must be linked to a billing account. Google Cloud allows you the flexibility of having multiple billing accounts – each of which can use a different credit/debit card. The idea behind this is to implement the pay-as-you-go policy of the cloud computing environment.

NOTE 1: You cannot use a prepaid credit/cash card in your billing account. I’ve tried this and my account along with all projects linked it was temporarily blocked. I immediately removed the prepaid card, and changed it to a valid credit card. The account was re-enabled after a few working days.

google-cloud-wordpress-003-cloud-trial-300SERP for “Google Cloud Trial” from Google.com

NOTE 2: Google is currently offering a $300 USD trial to anyone who signs-up for Google Cloud. Now you’ve got no excuse to not try Google Cloud haha!

Google Cloud Products

We talked about the various sub-products Google Cloud has to offer. Let us now take a look at each of them.

Google App Engine

google-cloud-wordpress-001-app-engineGoogle App Engine

Most software is built using a particular language and (optionally) based on a framework. A classic example would be a to-do list app, which is built on JavaScript and based on the jQuery framework. jQuery, as you can guess, is a framework for JavaScript, which is the language.

Similarly, loads of apps are written in popular languages like Python, Java and PHP. Each of these languages require an initial setup on the host system, in order to run the apps written in that particular language. For example, apps written in Java requires the Java Virtual Machine (JVM) to be installed in the target system.

Google App Engine takes care of this very task. It installs and configures these languages in it’s cloud infrastructure, so you can simply upload you code and get on with the development process. You don’t have to worry about setting up the language, or scaling the host system for your app. Google Cloud’s load balancing algorithms automatically take care of it. With Google App Engine, you simply need to select which language you need and deploy your app in it.

Google Compute Engine

google-cloud-wordpress-003-compute-engineGoogle Compute Engine (GCE)

Google Compute Engine (GCE) is another name for virtual machines in the cloud. Each VM is treated as an instance of a GCE. VMs can run almost any software you want it to. It offers more flexibility than App Engine and is intended for personalized environments.

Google APIs

google-cloud-wordpress-003-google-apiGoogle APIs

Google has over 100 APIs for its multitude of products. This cloud feature allows you to access these APIs.

Cloud Storage

google-cloud-wordpress-003-google-cloud-storageGoogle Cloud Storage

As the name suggests, Cloud Storage allows you to save large volumes of unstructured and semi-structured data, called datasets, with high-availability (basically geeky terms for Big Data applications).

BigQuery

google-cloud-wordpress-003-google-big-queryGoogle BigQuery

BigQuery is Google’s own implementation of a language suitable for handing big data. Although this is not even remotely related to our tutorial, it is a fascinating thing to experiment with!

Pre-Built Software Packages

google-cloud-wordpress-008-google-prebuilt-appsList of one-click installation images

This is where the fun begins! Forget all those complicated terms. Google has complied a list of the most popular software, frameworks and languages and offered them as pre-built software packages. Guess what?

WordPress is one of them!

Remember we discussed that each of these languages are installed in a virtual machine (or an instance of Compute Engine)? Well, the same holds here as well. When you create or a WordPress software package, you’ll  first have to select a virtual machine, its size and region in order to proceed with the installation. The software package is essentially a set of instructions that installs the respective software in a newly created virtual machine.

Installing WordPress in Google Cloud

Phase 1: Finding your way

google-cloud-wordpress-009-create a new projectCreate a new project

Step 1: First, you need to create a new project. You can visit Google Cloud Console to get started.

google-cloud-wordpress-010-add billing accountAdd a billing account

Step 2: Add a billing account to the project. You can also choose the desired data center. Currently Google Cloud has two major data centers for Google App Engine – US and EU. In this tutorial, I’ve chosen the US data center. Select Create to continue.

google-cloud-wordpress-011-new project created notificationNew project creation completed (indicated by green tick)

Step 3: Now, a project will be created. Upon completion, you’ll get a notification as shown in the screenshot above.

google-cloud-wordpress-012-select pre-built projects panelFinding the Deployment Manager

Step 4: Now we must find the page that shows the list of pre-built software packages, aka the Deployment Manager. You can do this in three ways:

  • 4.1 – From the menu on the left, select Deploy & Manage > Click to Deploy
  • 4.2 – Select the banner next to #2, as shown in the screenshot above
  • 4.3 – Click here for WordPress for Google Cloud

google-cloud-wordpress-013-select wordpressWordPress as a one-click deployed image

Step 5: Once in the page, you’ll see a huge list of software. Scroll down and select WordPress (for now). You can play with the rest as much as you want later! 🙂

Phase 2 – Installing and configuring WordPress

google-cloud-wordpress-013-select wordpress 2

Step 6: Okay, so now you’ve finally located WordPress installation option. Time to get cracking. Select Deploy to start the process.

google-cloud-wordpress-013-wordpress install parametersWordPress Installation Parameters on Google Cloud

Step 7: This here is a crucial step. Let’s dig in. Please refer the screenshot at every step.

  • The Deployment Name can contain only alphanumeric characters.
  • In Zone, there are three major zones – US, EU and Asia. In this tutorial I’ve chosen us-central1-f. You can choose any zone you like.
  • The Machine Type is directly proportional to the amount of power you need. For experimental purposes, a n1-standard-1 machine instance would do. It’s got 1 virtual CPU (vCPU) and 3.7GB of RAM, which is more than sufficient to try WordPress.
  • I’ve chosen the Disk Type as SSD Persistent Disk. This is because SSDs are 5 to 10 times faster than traditional HDDs.
  • The minimum Disk Size is 10 GB, which is sufficient.
  • The Administrator Email should be correctly entered.
  • Check the Install phpMyAdmin and Enable Google Cloud Monitoring options.
  • Leave the rest of the settings as is.
  • Click on Deploy WordPress to begin installing WordPress.

google-cloud-wordpress-013-wordpress setting upDeployment Manager setting up WordPress

Step 8: Google Cloud’s Deployment Manager will now create the selected instance and install WordPress on it.

google-cloud-wordpress-013-wordpress installation completeAccess credentials shows post installation

Step 9: WordPress in now installed. But that’s just 70% of the process. Now we have the following tasks lying ahead of us:

  1. Note the WordPress admin password
  2. Note the MySQL and phpMyAdmin password

google-cloud-wordpress-013-wordpress allow https trafficAllowing HTTP and HTTPs traffic

Phase 3: The home run!

Step 10: Now we need to allow external HTTP and HTTPS traffic to pass through our WordPress server’s IP address. (Google Cloud disables this by default for security purposes). In other words, we’ll need to add a firewall rule for our assigned IP address.

To do this, click on the server’s IP address located under External IP. A dialog box should open. Select both Allow HTTP and HTTPS traffic to pass through your server. Click on Apply to commit the changes.

google-cloud-wordpress-013-wordpress updating firewall rulesFirewall rules updated successfully

Once the firewall rules are successfully updated, you should be able to access WordPress from the given IP address.

google-cloud-wordpress-013-wordpress doneWordPress is served

Conclusion

If you’ve noticed, we haven’t seen any screenshots for the famous five-minute WordPress installation – you know the configuration phase where you set your websites’s name,  username, password, etc.?

Well, Google Cloud’s one-click WordPress deployment script eliminates those steps and configures them with default values. You should head over to the WordPress settings and change them you your desired values.

Try WordPress on Google Cloud ($300 Free Trail)

I hope you enjoyed this tutorial, as much as I’ve enjoyed writing it. If you have any questions or suggestions, please leave them in the comments section below or tweet me at @souravify – Thanks for reading! Happy trails.

install-wordpress-google-cloud
Article by Sourav WPExplorer.com guest author
Subscribe to the Newsletter

Get our latest news, tutorials, guides, tips & deals delivered to your inbox.

26 Comments

  1. Zhe Yan

    Nice article! The screenshots do help me a lot. I have a question about load speed, does Google Compute Engine better than CDN? or it need CDN serves for global visitors?

  2. PrabhuPrabhu

    I am seeing a lot of folders while connecting to SFTP but unable to figure out where are the wordpress files so that I can migrate them to the server. Kindly advise.

    • AJ Clarke

      This is going to depend on how things are setup, so it’s not something we would know. You’ll want to ask your webhost for some help if you aren’t sure.

  3. Tom TK

    When i upload theme into wordpress in Google Cloud….The upload file size is too big …How to solve this? Thanks

  4. Jude

    How much would it cost per month on average?

    • AJ Clarke

      That’s a nearly impossible question to answer because it’s all dependent on your own traffic and server usage.

  5. Great

    That was incredible, thanks for your time and effort.

  6. Hector Tolmo

    very good blog, as I edit themes, plug-in, add additional files

  7. Hasan Raza

    You explained very well, I have found another blog where wordpress installation on GCE is explained and it’s very easy, you just have to sign up on cloudways.com from where you are directed to cloud console page where you can customize server according to your need and specification just by selecting google cloud, wordpress app, server size, location, bandwidth, storage and just click launch and you are ready to go. The steps for wordpress installation on GCE are explained very well on: https://www.cloudways.com/blog/wordpress-on-google-cloud/

  8. Christophe Schillemans

    thx! Would like to know if it is possible to set up multiple WP instances on 1 vm on google cloud?

  9. Anjou

    I’ve used these instructions for months and it’s worked without fail!! Thank you .. Now in market place only WordPress with bitnami is there ? I have no way to quick launch WordPress any more? Have you noticed this? Aj

    • AJ Clarke

      Hi. Unfortunately I am not sure why this would happen 🙁

  10. skyhighcomic

    I tried to follow your instruction but there is option to install phpmyadmin or enable Google cloud monitoring options. I want these to enable file permission editing. Please hlep

  11. skyhighcomic

    There are no longer these options in step 6:

    WordPress administrator email
    Install phpmyadmin
    enable Google Cloud monitoring

    What do I do?

  12. Vasant Kumar Biradar

    Thank you sourav for sharing your knowledge..

  13. websiteforstudents

    Great guide, helped me a lot. It appears users will still need CDN services if they want to improve speed even more.

    Thanks

    • AJ Clarke

      Definitely! If your budget can afford it using a CDN is always a great idea and can help site speed a lot.

  14. Tups For New Bloggers

    This was very helpful , thanks a lot , I really mean it !

  15. stephen

    How do you now connect your domain to the installed wordpress website on google cloud?

  16. Dimitri

    AJ you are a fucking genious! You guys helped me so much with my Total Theme! Best support I have had! Much love and respect and whether you say this google cloud thing is solid, I’ll give em a try! 😉 Nice tutorial though!

  17. Ronald

    Hi, I’m thinking of hosting my site to Google Cloud because, simple, it’s Google. In your test, google is fast on wordpress or not? Thanks!

    • AJ Clarke

      Yes it should be fast, but your site speed depends on other factors as well besides just where it’s hosted.

  18. rajuginneblog

    why 300$ for month is it not equal cloud basic vps

  19. Regex SEO

    Is it true they are depreciating google app engine launcher?

    • Kyla

      Perhaps another reader or author can give a better answer, but I thought I read that the Google app engine launcher became (or is becoming) a part of the cloud SDK…

Leave a Reply

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

Learn how your comment data is processed by viewing our privacy policy here.