AWS Lightsail is the all in one solution for hosting any website or web service. It includes VPS, Firewall, CDN, DNS Manager, Managed Database, Load Balancers, Backups – all in one place for a low price.
Installing WordPress on Lightsail is the easiest way to get started. This tutorial will walk you through how to install WordPress on an AWS Lightsail Instance. It includes connecting to your instance via SSH, assigning a static IP to your instance and mapping your domain. Let us begin.
ALSO READ: How to Set Up a Headless WordPress Website
Time needed: 15 minutes.
Step by step process of installing WordPress on AWS Lightsail
- Sign up for an AWS account
Sign up or log in to your AWS account, without which you cannot use Lightsail.
- Create a WordPress Lightsail instance
1) Sign into Lightsail console.
2) On the instances tab, click on Create instance.
3) Choose the AWS region where you want your instance to be.
4) Choose Linux/Unix as platform and then WordPress as blueprint.
5) Choose an instance plan.
6) Name your instance name.
7) Click on Create instance.
- Connect to your instance via SSH and get WordPress admin password
1) Besides your instance, click on the SSH quick connect icon.
2) After the browser SSH client opens, enter the following command:
3) Password will be displayed on the screen.
- Sign in to wp-admin
1) In your browser, go to (replace publicipaddress with your instance IP):
2) In the username, enter user and enter the password you got from step 3 in the password box.
3) Click on Log in.
- Attach a static IP to your instance
1) Choose your WordPress instance from Lightsail console.
2) Go to the Networking tab and click on Create static IP.
3) Name your static IP and click on Create.
- Mapping a domain to the instance
1) On the Networking tab, click on Create DNS Zone.
2) Enter your domain name and then click on Create DNS Zone.
3) Change the name servers of your domain to the name servers provided by Lightsail at your domain registrar.
4) Add an Apex (A) record (@) in the subdomain box and put your static IP address in the Resolves to box.
5) Allow some time for the DNS record to propagate. Now you can access your WordPress site at domain.com.