aws apache server code example
Example 1: how to configure httpd in amazon ec2 instance
[ec2-user ~]$ sudo chmod 2775 /var/www
[ec2-user ~]$ find /var/www -type d -exec sudo chmod 2775 {} +
Example 2: how to configure httpd in amazon ec2 instance
[ec2-user ~]$ sudo yum update -y
Example 3: start apache server amazon
sudo systemctl start httpd