Loading...

How to Install WordPress on Google Cloud

Google Cloud gives you the same fast network that big companies run on, but it hands you a bare server and expects you to be the administrator. Installing WordPress on it is very doable, and there is more than one way to get there. This guide walks through all three real options, from a near one-click deploy to a full hands-on build, so you can pick the one that matches your comfort level and budget.

What Installing WordPress on Google Cloud Actually Involves

Google Cloud is infrastructure, not a tidy hosting dashboard. You rent a virtual machine (Google calls it a Compute Engine instance), and the operating system, web server, database, and WordPress itself are yours to set up and keep running. That is the trade: you get raw performance and control, and in exchange you take on the server admin work.

There are three honest paths to a working WordPress site on Google Cloud:

  • Marketplace deploy. Launch a ready-made WordPress virtual machine image in a few clicks, then do a little cleanup.
  • Manual build. Create an empty server and install the web stack and WordPress yourself. The most control, the most work.
  • Managed hosting on Google Cloud. Let a managed host run WordPress on Google's servers for you, so you never touch the command line.

For the full picture of how these routes fit together, see the Google Cloud setup and deployment guide and the broader Google Cloud hosting guide.

Set a Budget Alert Before You Deploy Anything

This is the step most tutorials skip, and it is the one that saves people from a surprise bill. Google Cloud charges by usage, so a running server, its disk, and the traffic leaving it all add up whether or not anyone visits your site. Do two things first:

  • In the Billing section of the console, create a budget and turn on email alerts at, say, 50% and 100% of what you are willing to spend each month.
  • Know what the free allowance does and does not cover. Google's Always Free tier currently includes one small e2-micro instance in a few eligible US regions, but data transfer out, snapshots, and larger machines are billed as normal. Treat "free" as a starting point, not a guarantee, and check Google's current free-tier terms before you rely on them.

With a budget alert in place, you can experiment without fear of a runaway charge.

Route 1: One-Click Install from Google Cloud Marketplace

This is the fastest do-it-yourself path. Google Cloud Marketplace offers pre-built WordPress virtual machine images, so the web server, database, PHP, and WordPress arrive already installed.

  1. Open the console and go to Marketplace, then search for WordPress.
  2. Pick a well-reviewed WordPress virtual machine image. Listing names and vendors change over time, so read the current description and reviews rather than trusting an old screenshot from another guide.
  3. Click Launch (sometimes labeled "Launch on Compute Engine").
  4. Set the deployment name, region and zone (keep it close to your visitors), machine type, and disk size. Tick the boxes to allow HTTP and HTTPS traffic.
  5. Deploy, and wait a few minutes while Google builds the instance.
  6. On the deployment summary page, find the admin username and temporary password and the site's IP address. Visit that IP followed by /wp-admin and log in.

Many prebuilt images ship with a built-in SSL helper tool, so you can switch the site to HTTPS without installing certificates by hand. If yours does not, the hardening section below covers it.

Route 2: Manual Install on a Compute Engine Server (Full Control)

If you want to understand and own every layer, build it yourself. The steps below do not drift much from year to year, which is why this route ages well.

  1. Create the instance. In Compute Engine, create a VM. A small e2-micro or e2-small with a current Ubuntu LTS image is plenty for a starter site. Allow HTTP and HTTPS traffic when prompted.
  2. Reserve a static IP. By default the external IP can change on reboot. Promote it to a static address so your domain keeps pointing to the right place.
  3. Connect. Use the browser SSH button next to your instance to open a terminal, no key setup required.
  4. Install the web stack. Update packages, then install Apache (or Nginx), MariaDB or MySQL, and PHP with the common WordPress extensions.
  5. Create the database. Log into MySQL, create a database and a dedicated user, and grant that user access. Keep the password somewhere safe.
  6. Add WordPress. Download the latest release from wordpress.org, unpack it into the web root, and set the folder ownership so the web server can write to it.
  7. Configure and install. Copy the sample config to wp-config.php, fill in your database name, user, and password, then visit the server's IP in a browser and complete the famous five-minute WordPress setup.
  8. Add swap on small instances. A micro server has little memory, so creating a small swap file keeps the database from stalling under load.

It is more work than Route 1, but nothing on the server is a mystery afterward.

A diagram of a request passing from the visitor through a CDN and a page cache before it reaches WordPress and the database.
Where the request stops. Everything left of WordPress is a page that never ran PHP.

Route 3: Run WordPress on Google Cloud Without the Server Admin

Plenty of people want Google's network speed but not the job of patching a server, renewing certificates, and fixing things at 2am. Managed hosts solve this by running WordPress on Google Cloud's servers for you, with backups, caching, and support included.

You still get Google Cloud underneath. You just skip the part where you become a Linux administrator.

After You Install: Domain, SSL, and Basic Hardening

A fresh WordPress site answers on an IP address. To turn it into a real site:

  • Point your domain. At your registrar, create an A record for your domain that points to the server's static IP. Allow a little time for it to take effect.
  • Turn on HTTPS. Use the image's built-in SSL tool, or install a free Let's Encrypt certificate so the site loads over a secure connection.
  • Lock it down. Set a strong admin password, keep WordPress and plugins updated, remove any sample content, and set up automatic backups. On a self-managed server, backups are your responsibility, not Google's.

Which Install Method Should You Choose?

  • You want it running today and will tidy up later: Route 1, the Marketplace deploy.
  • You enjoy the control and want to learn the stack: Route 2, the manual build.
  • You want Google Cloud speed without being the sysadmin: Route 3, managed hosting.

There is no wrong answer. A hobby blog and a growing store simply value their time differently. If you are still weighing whether Google Cloud is the right home at all, the Google Cloud Platform review lays out the strengths and the rough edges in plain terms.

Frequently Asked Questions

WordPress itself is free and open source, so the software costs nothing. What you pay for is the Google Cloud server that runs it. A small instance can fall within Google's Always Free allowance in eligible US regions, but traffic and storage beyond the free limits are billed, so set a budget alert before you start.
For the Marketplace one-click route, no. You click through a short form and log in. The fully manual route uses the command line to install the web server and database, which is beginner-friendly if you follow the steps but does expect a little comfort with a terminal. If you want none of that, a managed host runs WordPress on Google Cloud for you.
The Marketplace deploy takes roughly ten to fifteen minutes, most of which is waiting for the server to build. A manual install usually takes thirty to sixty minutes the first time. A managed host can have a site ready in a few minutes with no server work at all.
Yes. After you have a working install using any of the routes here, you can import your content and files with a migration plugin or by copying the database and uploads folder across. Managed hosts on Google Cloud often include a free migration tool that does most of the work for you.
It is a strong fit when you want a fast network and room to grow and you either have some technical confidence or use a managed layer on top. For a simple blog where you never want to see a server, a managed host, whether on Google Cloud or elsewhere, is usually the easier call.
Installing it yourself means you own the server, so you handle updates, security, and backups and you get full control. Managed hosting on Google Cloud runs the same infrastructure underneath but the host takes care of the maintenance, caching, and support, which costs more but saves you the admin work.
Some of the links on this blog are sponsored links
Newsletter
Stay Ahead in Hosting

Expert hosting tips, reviews, and exclusive deals — delivered straight to your inbox. Join thousands of smart webmasters.

You're in! Thanks for subscribing.
Something went wrong — please try again.
No spam, ever. Unsubscribe in one click.
Top