In the Lightsail console, choose Instances, then Create instance. Make sure the location is Singapore, Zone A (ap-southeast-1a), the same zone as the database.
Under Select a platform, choose Linux operating system. Under Select a blueprint, choose Ubuntu 24.04 LTS.

/var/www/html, and installs WP-CLI, the WordPress command-line tool.#!/bin/bash
# Install Apache, PHP and the MySQL client (Ubuntu 24.04)
apt-get update
DEBIAN_FRONTEND=noninteractive apt-get install -y apache2 php libapache2-mod-php php-mysql php-gd php-xml php-mbstring php-curl php-zip php-intl mysql-client
# Download WordPress into the web root
cd /var/www/html
curl -sSO https://wordpress.org/latest.tar.gz
tar xzf latest.tar.gz --strip-components=1
rm -f latest.tar.gz index.html
cp wp-config-sample.php wp-config.php
chown -R www-data:www-data /var/www/html
# Install WP-CLI
curl -sSo /usr/local/bin/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
chmod +x /usr/local/bin/wp
systemctl restart apache2


fcj-wordpress. Under Tagging options, add the tag Project = fcj-lightsail. Choose Create instance.
