Get Started with the Implementation Guide

5 Steps  |  60 Minutes

Build_LAMP_Web_App_HERO-ART_SM

In this project, you will learn how to deploy a high-availability LAMP stack web app using AWS Elastic Beanstalk and Amazon Relational Database Service (RDS). The stack uses Linux, Apache, MySQL, and PHP. Using Elastic Beanstalk, you can simply upload your code and Elastic Beanstalk automatically handles the deployment, from capacity provisioning, load balancing, auto-scaling to application health monitoring. Elastic Beanstalk automatically scales your application up and down based on your application's specific need using easily adjustable Auto Scaling settings. Amazon RDS makes it easy to set up, operate, and scale a relational database in the cloud. It provides cost-efficient and resizable capacity while managing time-consuming database administration tasks.

aws-project_lamp-app_arch
Get Started with the Implementation Guide

What you'll accomplish:

Launch a LAMP stack web application using AWS Elastic Beanstalk and Amazon Relational Database Service (RDS). Elastic Beanstalk provisions and manages the underlying infrastructure (e.g., Amazon EC2 instances) and stack components (e.g., OS, web server, language/framework) for you. RDS provides the MySQL database.

Deploy your web app using AWS Elastic Beanstalk. You’ll upload your code to Elastic Beanstalk, which handles all deployment details for you.  

What you'll need before starting:

An AWS Account: You will need an AWS account to begin provisioning resources to host your website. Sign up for AWS.

Code: If you have code for your application, you can deploy it using this guide. You can also use our sample app code instead.

Skill level: A basic understanding of web technologies and LAMP stack is recommended but not required.

AWS Experience: No prior experience with AWS is required to complete this project.

Monthly Billing Estimate:

The total cost of hosting a high availability LAMP stack on AWS using the implementation recommended in this guide will vary depending on your usage and the instance types you select. Using the recommendations in this guide, running this stack will typically cost you $40 per month or more if you are outside the AWS Free Tier limits.

A LAMP stack that is not highly available would cost less than $1 per month if you qualify for the AWS Free Tier and are within its limits. To see a breakdown of the services used and their associated costs, see Services Used and Costs.


Accelerate your application with Lightsail. It provides everything you need to jumpstart your application on AWS—compute, storage, and networking—for a low, predictable price.

Find and launch pre-configured images running a LAMP stack on the AWS Marketplace.

This tutorial helps you install the Apache web server with PHP and MySQL support on an Amazon Linux instance. Use this tutorial if you prefer to install and manage the web server, language, and database on Amazon EC2 yourself.

Need more resources to get started with AWS? Visit the Getting Started Resource Center to learn more.