Deploy a LAMP Web App on Amazon Lightsail
AWS Experience |
Beginner |
Time to complete |
15 minutes |
Cost to complete |
Free
Tier |
Code |
Download the example project for this guide here NoteChoosing the link downloads the file. |
Last updated |
March 17, 2023 |
Overview
In this guide, you will learn how to deploy a PHP web application on a LAMP (Linux, Apache, MySQL, PHP) stack deployed using Amazon Lightsail.
Lightsail is an easy-to-use virtual private server (VPS) provider that offers you everything needed to build an application or website for a cost-effective, monthly plan.
What you will accomplish
In this guide, you will learn how to:
-
set up a LAMP stack using Amazon Lightsail blueprints
-
deploy a PHP app to the instance
Prerequisites
Before Starting this guide, you will need:
-
An AWS account: if you don't already have one follow the Setup Your Environment getting started guide for a quick overview.
-
(Optional) Activity in this guide will heavily involve terminal activities. You can use your own development environment to follow this guide, or you can also use AWS Cloud9. For more information on how to setup your AWS Cloud9 environment, please refer to this guide Setting up AWS Cloud9.
Implementation
Modules
This tutorial is divided into the following short modules. You must complete each module before moving to the next one.
-
Module 1: Create Your Lightsail PHP Application (15 mins): Set up your LAMP stack with Lightsail and install your PHP application.
-
Module 2: Clean Up Resources: In this last part of the guide, you learn how to clean up resources after you are done.