How do I make PHP files work with Amazon hosting?

amazon-s3, amazon-web-services, hosting, php

Solution

You may be interested in AWS Elastic Beanstalk. You simply upload your application, and Elastic Beanstalk automatically handles the deployment details of capacity provisioning, load balancing, auto-scaling, and application health monitoring. Here is a link to the PHP Getting Started Guide. Hope that helps!

Problem

I have a website that I'm helping a friend upload to Amazon to host. All of the web files are html integrated with PHP so that one PHP file might represent the header, one may represent the body, and one may represent the footer. Normally I would just upload it to my HostGator account and life would be good, but I guess I can't just put it in a bucket and have it work in Amazon S3. How do I set it up so that my PHP files work? I realize that I can't solely use S3. So do I put some files on S3, or does everything go on EC2? And how to I get EC2 working? I just have some .php files I need to work. Are there any official tutorials that will help me set up EC2 to do this?

Original source