how to setup symfony2 on amazon aws

Whilst as you can use AWS to provide standalone servers, if you wish to support multiple instances, load balancing etc, you’ll want to separate things out. At the most basic level you’ll likely want to be using:

S3 – persistent storage

RDS – MySQL database

EC2 – Apache / Nginx, PHP front end

You can then augment this with:

Cloudfront – localised delivery of your S3 content

Loadbalancer – ensure your EC2 instances are used optimally

Auto scaling – start / stop new instances

Route 53 – DNS

VPC – important as this offers security, single front ends for SSL certificates etc.

Using the above, I’d suggest moving your database to RDS and simply hosting Apache on your EC2 instances. You might even find this is cost effective too as you’ll be able to utilise small instances given the lower memory / CPU requirements.