AAtsushi's Blog
Other

Notes on Creating a Website with WordPress

→ 日本語版を読む

Overview

I set up a VM on GCP and created a website with Wordpress, so I am noting it down here.

Notes

Since GCP has a free tier, I decided to set up a VM on GCP and create a website.

I tried creating an instance group and terminating SSL at a load balancer, but a redirect loop occurred. I also tried WordPress plugins but could not get it to work.

So I decided to terminate SSL directly on the Compute Engine instance. I purchased a domain from onamae.com and configured it in Cloud DNS.

I used a pre-configured Wordpress instance from the GCP Marketplace. I referred to the following articles.

How to build a WordPress media site from scratch on Google Cloud Platform (GCP)

utilly.jp

How to configure DNS for a WordPress site built on Google Cloud Platform (GCP)

Also, since Let's Encrypt certificates expire every 90 days, I configured cron to automatically renew the certificates.

Steps to automate Let's Encrypt certificate renewal (cron) |

Additionally, I set up periodic backups of the VM.