ec2 setup apache code example
Example 1: how to configure httpd in amazon ec2 instance
[ec2-user ~]$ sudo yum install -y httpd24 php56 php56-mysqlnd
Example 2: how to configure httpd in amazon ec2 instance
[ec2-user ~]$ sudo chgrp -R www /var/www