Bobcares

Migrate WordPress to Google Cloud

by | May 20, 2021

How do we migrate a WordPress site to Google cloud?

This is a common support request that we receive as a part of our Google Cloud Support Services. Many customers prefer hosting WordPress websites that require scalability, resiliency, and performance with Google cloud.

Let us today discuss the possible steps involved in the process.

Configure WordPress on Google Cloud

We can deploy WordPress on Google cloud with the steps below:

Deploy WordPress

  1. From the Google Cloud sidebar menu, navigate to Marketplace.
    Migrate WordPress to Google Cloud
  2. From the Marketplace dashboard, type wordpress into the search field, then select the WordPress Certified by Bitnami and Automattic.
  3. Click on the LAUNCH button to begin configuring WordPress instance.

Customize Deployment

Modify our instance configuration according to the settings above, making sure to change the Zone to represent where most of our website’s visitors are located. We can also upgrade the Machine type and/or Boot disk size in GB accordingly. Finally, click on the Deploy button to deploy our WordPress instance.

Configure Domain

As our WordPress instance has been deployed, we will configure a domain name for our new WordPress website.

First,  we need to navigate to VM Instances dashboard and copy the IP address that has been assigned to our WordPress instance.

Now, we need to enable DNS settings. From our web browser, navigate to our domain name provider. Navigate to the settings page for our domain and select the corresponding provider from the NAMESERVERS row.

Then, we need to create DNS Record. Next, click on the Advanced DNS tab at the top-right of our domain name dashboard. Then, in the HOST RECORDS row, create a new A record. However, replace the IP address with the IP address of our instance. Next, create a CNAME record record for www.

Configure SSL

As our website’s domain name has been configured, we shall enable SSL for our domain name. To do this, we will connect to our WordPress instance via the SSH terminal. Then execute a script that will automate the process of configuring SSL for our website.

First, we need to connect to WordPress Instance. Return to VM Instances dashboard and click on the SSH button in order to connect to our WordPress instance.

Then, we will execute SSL Script. Now that we have clicked the SSH button, a new terminal window will open displaying the connection to our WordPress Instance. Execute the following command into the terminal window:

sudo /opt/bitnami/bncert-tool

After we have pressed Enter, the script will prompt with a series of questions, which we will answer by entering either y (for yes) or n (for no).

We have successfully deployed a fully-functional WordPress website on Google Cloud Platform. However, there are still some very important steps to complete like retrieving our login credentials and login to our WordPress website, and optionally import an existing WordPress website.

Login to WordPress

Now we need to login to WordPress with the steps below:

  • From the Google Cloud sidebar menu, navigate to Marketplace.
  • From the Marketplace dashboard, click on Your solutions.
  • Select our recent deployment from the list.
  • Next, copy both the Admin user and Admin password (Temporary) from the list. We will use these credentials to login to our WordPress website in the next step.
  • Visit the WordPress login page and use the username and password to login to our website.

Assign a Static IP Address

By default, the WordPress instance is assigned an ephemeral IP address, which means that if our WordPress instance is ever stopped or restarted, its IP address will change. This is not desirable and can cause networking problems for our website.

To prevent this issue, we need to reserve a static IP address for our WordPress instance. To do this, follow the steps given below:

  • From Google Cloud Platform dashboard, navigate to Networking > External IP addresses.
  • If we already have a website configured, click the down arrow under the Type column and select Static for the External IP address that is connected to our instance.

Migrate WordPress to Google Cloud

Import a WordPress Website

We can use the All-in-One WP Migration Unlimited Plugin to quickly export and import our existing WordPress website to its new location on Google Cloud. Follow the steps given below:

Download WP Migration Plugin

From our existing WordPress website, head over to “Add Plugins” and download the All-in-One WP Migration plugin.

The free version of All-in-One WP Migration plugin limits the WordPress upload file size to 512MB. If our WordPress file size is greater than 512MB, download the unlimited version of the plugin and upload it to WordPress plugins library.

Export Website File

Activate the All-in-One WP Migration plugin and access it by clicking the link in our WordPress sidebar column. From the All-in-One WP Migration dashboard, enter our existing website URL in the Find field and our new website URL in the Replace with field. Finally, export our website by selecting Export To > File.

Import Website File

From our new WordPress Website installation, download the All-in-One WP Migration plugin and go to Import From > File. Choose the export file that we downloaded in the previous step.

Change Permalink Structure

After we have successfully imported our WordPress website to Google Cloud, we will need to reset our permalink structure. From our WordPress dashboard, go to Settings > Permalinks and select the permalink structure that we prefer (for example, Post name).

After finishing with the WordPress migration, we can uninstall or deactivate the All-in-One WP Migration plugin.

[Need any further assistance with migrate WordPress to Google Cloud? – We’re available 24*7]

Conclusion

In short, to migrate a WordPress site to Google Cloud we can use the regular migration plugins like WP Migration Plugin. Today, we saw how our Support Engineers perform this.

 

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

SEE SERVER ADMIN PLANS

var google_conversion_label = "owonCMyG5nEQ0aD71QM";

0 Comments

Submit a Comment

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

Never again lose customers to poor
server speed! Let us help you.