Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Skip to main content
TUTORIAL

Deploy a LAMP Web App on Amazon Lightsail

Introduction

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.

  1. Set up a LAMP stack with Lightsail (15 mins): Set up your LAMP stack with Lightsail and install your PHP application.

  2. Clean up: In this last part of the guide, you learn how to clean up resources after you are done.

Launch Stack

Start Module One