• Home
  • blog
  • Running an Elastic LAMP Stack on AWS

Running an Elastic LAMP Stack on AWS

This article introduces what is probably one of the simplest ways of setting up and running an elastic LAMP stack on the cloud – using Zend Server on AWS.

Zend Server Splash Screen

Note: to be clear elastic does not refer to ElasticSearch here.

More specifically, the workflow described here includes launching a pre-configured AWS CloudFormation template that sets up all the components of a LAMP stack: Zend Server’s certified PHP stack plus all of Zend Server’s add-on features (including Z-Ray), a MySQL database, a Zend Server elastic group consisting of additional Zend Server instances, an elastic load balancer, and other pre-configured security definitions.


This article is perfect for those contemplating moving their production environment to the cloud or those who already have one set up on AWS.

Basic Concepts

Zend Server is an application platform for web and mobile PHP apps, which comes with an advanced PHP stack and a set of tools for developing, debugging, deploying and monitoring applications. If you are not familiar with Zend Server, check out Bruno Skvorc’s article for some background.

CloudFormation enables the creation and provisioning of AWS deployments using Amazon EC2, load balancing, auto scaling and other AWS products, to build applications in the cloud. Using a template file to create a collection of resources together as a single stack, CloudFormation enables you to quickly deploy your PHP apps without having to worry about creating and configuring the underlying infrastructure.

To follow the steps outlined here, all you need is a valid AWS account and 30 minutes of spare time.

Step 1: Launching the Stack

We’re going to start by opening and logging into the AWS marketplace.

Entering Zend Server in the search box at the top of the page gives us a list of all the available Zend Server AMIs (Amazon Machine Instances). The list includes a wide variety of versions and editions, each supporting different PHP versions and Linux distros. There is even a PHP 5.3 LTS instance available.

Zend Server AMIs list

Continue reading %Running an Elastic LAMP Stack on AWS%