how to install httpd in amazon ec2 linux 2 code example Example: how to configure httpd in amazon ec2 instance [ec2-user ~]$ sudo chgrp -R www /var/www