Go through this amazon link http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
sudo yum update -y
sudo yum install -y httpd24 php56 mysql55-server php56-mysqlnd
Go through this amazon link http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
sudo yum update -y
sudo yum install -y httpd24 php56 mysql55-server php56-mysqlnd