You might like :Amazon Web Services – Web Hosting & Cloud Computing With AWS
You can host a php application on AWS using two methods,
1. Hosting it directly on a EC2 instance- In this scenario, you have to launch, install and configure the application environment.
2. Using elastic beanstalk: Elastic beanstalk is a an app deployment service, using which you can deploy a php application with few clicks. EC2 instances, load balancer, autoscaling etc,, everything will be setup automatically in the backend using elastic beanstalk. All you have to do is just upload your application using the management console. The instances created by elastic beanstalk is accessible by the user. Amazon wont charge you for elastic beanstalk service, but will charge only for the resources created in the backend.
Also read: How to host application on AWS elastic beanstalk
In this tutorial i will explain the first scenario where you have to setup the instance and webserver manually.
Tutorial for hosting a dynamic site using EC2
sudo apt-get update
sudo apt-get install lamp-server^
Hosting A Static Website Using S3