The easy way to deploy PHP environment into Amazon EC2 is to use AWS Elastic Beanstalk service. It automatically runs all the infrastructure including EC2 instance with PHP installed. See http://aws.amazon.com/elasticbeanstalk/.
yum installation is also available on EC2.