AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)

Deploying Elastic Beanstalk Applications in PHP

Elastic Beanstalk for PHP makes it easy to deploy, manage, and scale your PHP web applications using Amazon Web Services. Elastic Beanstalk for PHP is available to anyone developing or hosting a web application using PHP. This section provides instructions for deploying your PHP web application to Elastic Beanstalk. You can deploy your application in just a few minutes using EB Command Line Interface (CLI) 3.x and Git or by using the Elastic Beanstalk management console. It also provides walkthroughs for common frameworks such as CakePHP and Symfony2. For instructions on managing your application and environments using the console, CLIs, or APIs, see Managing and Configuring Applications and Environments Using the Console, CLI, and APIs.


This section discusses deploying applications using a non-legacy PHP container. If you are running an application using a legacy PHP container, then we recommend that you migrate to a non-legacy PHP container. For instructions on how to check if you are running a legacy container and to migrate to a non-legacy container, see Migrating Your Application from a Legacy Container Type. If you require instructions to deploy an application using a legacy PHP container, see Getting Started with Eb. (You can use eb 2.6.x to deploy an application using a legacy container, but not EB CLI 3.x.)