This lab walks you through Installing WordPress on Compute engine using Startup Script.
Make sure, you have completed the Compute Engine lab and Cloud SQL lab. This lab will directly jump on to building WordPress, and not get into the detail of Compute Engine. If you have not completed the previous labs, we recommend you complete the previous labs first.
In this lab, we will use a Startup script to install WordPress, and then connect WordPress with Cloud SQL.
Duration: 60 minutes
In this lab, we will create a Compute Engine using a WordPress Startup script. There is another way where you can use WordPress Image to launch the instance but that could be an expensive approach. We have provided the startup script and way to connect to the Database.
Login into GCP Console.
Creating a Firewall Rule.
Creating a Compute Engine using a Startup script.
Creating a Cloud SQL Instance.
Create a Cloud SQL Database.
Configuring WordPress to connect with Cloud SQL
Testing the WordPress Site.