Back in the day when you evaluated hosting plans to power your WordPress website, most companies offered the regulars – shared, dedicated, managed, and VPS.
Your site would be hosted on a server within the hosting provider’s data center and that was all there was to it.
Unless you’ve been hiding under a rock for the past few years, you’ve probably heard the term cloud computing or the cloud thrown around a bit.
In this post, we’ll walk you through a step by step tutorial on how to install your WordPress website on Google Cloud and compare it to other cloud environments.
Let’s put everything into context before we begin.
The Cloud, often used in place of cloud computing, refers to the delivery of computing resources over the Internet. Users can get access to just about everything from web applications to data centers. A cloud environment also enables webmasters to host their websites in a cloud infrastructure spanned across multiple servers.
In a nutshell, the cloud is a network of servers that can be used as Software as a Service (SaaS), Infrastructure as a Service (IaaS) and Platform as a Service (PaaS).
When we talk about installing WordPress on the cloud, we are basically hosting it through a cloud infrastructure service such as Google Computer Engine, Microsoft Azure, or Amazon Web Services (AWS).
As you can probably already tell, the cloud is an incredibly powerful alternative to traditional web hosting services. It offers three key benefits to webmasters:
Those of you who are technically inclined can leverage Google Compute Engine (Google Cloud Platform’s IaaS) to host your WordPress website. In this section, we’ll show you how to do just that.
Note: If you don’t already have a billing account set up with Google Cloud Console, you’ll have to do that before you get started.
To start things off, let’s create a new project in the Google Cloud Console which we’ll use to install our WordPress site on.
Step 1: Log in to your Google account and navigate to the Google Cloud Console.
Step 2: Hover over the Project drop-down menu on the left side of the console dashboard and click Create project.
Step 3: In the following pop-up screen, fill in the project details.
Step 4: Click the Create button once you’re done.
Step 5: Navigate to the Library tab and click on the Cloud Deployment Manager API under Google Cloud APIs (Library > Google Cloud APIs > Cloud Deployment Manager API).
Step 6: Click on Start with a prebuilt solution to continue.
Step 7: Navigate to the Cloud Launcher and click on WordPress under the CMS section.
Step 8: Click the Launch on Compute Engine button to proceed.
Now that we’ve created a project, let’s move on to installing WordPress on the Google Cloud.
Step 9: In the following screen, you’ll find a Deploy button. Click it to get started with the installation process.
Step 10: Fill out the WordPress deployment form to continue:
Step 11: Click on the Deploy WordPress button to begin the installation.
Step 12: Once your deployment is ready, you’ll be redirected to the Deployment informationscreen which contains the WordPress administrator username and password, MySQL administrator password, and phpMyAdmin username. You will need to save these credentials in a text file.
By default, Google Cloud doesn’t allow HTTP traffic and HTTPS traffic to pass through. In order to enable this option, we’ll add a firewall rule for the external IP address of our deployment instance.
Step 13: Click on the External IP address under the WordPress server section.
Step 14: In the following pop-up screen, check both the Allow HTTP traffic and Allow HTTPS traffic options.
Step 15: Click the Apply button once you’re done.
Step 16: Enter the IP address into your browser’s URL and you will be redirected to your brand new WordPress site.
Hosting websites on the cloud has become tremendously popular over the past few years. Their powerful range of features extends from catering to unexpected traffic spikes to guaranteeing near-perfect uptime for your website.
We walked you through a tutorial on how to install WordPress on the Google Cloud. Hopefully, you’re in a good position now to take things further yourself.