Setting up Symfony2 application on amazon (for dummies)

Viewed 8703

I am trying to learn how to successfully deploy Symfony2 application on amazon cloud. What worked is that I started with blank Ubuntu, installed lamp-server^, svn... few other goodies and it worked perfectly.

The problem: all assets and DB were hosted on that one instance and I know it is not the right thing to do. I checked numerous sites and didn't find any easy solution of setting real S2 application, only Wordpress and alike.

My application allows users to upload images and then display them using Liip/Imagine bundle

I also checked AmazonWebServices bundle and I guess I should somehow use both of them; first one for display, second one for sending files to S3 bucket. And it also must work in my local Windows enviroment.

  1. How to solve that? Is there some really idiot-proof solution for this?
  2. RDS requires to read

    $dbhost = $_SERVER['RDS_HOSTNAME'];
    $dbport = $_SERVER['RDS_PORT'];
    $dbname = $_SERVER['RDS_DB_NAME'];
    

    to be able to access mysql. How to do that when using parameters.yml?

3 Answers
Related