- Assuming EC2 already setup and publicly accessible
- Add rules to Security Group assigned to EC2 – that allows http traffic inbound port 80 and ssh port 22- can only allow myIP if testing – now save
- SSH into public EC2 that you want the webserver on
- sudo yum install httpd
- systemctl enable httpd
- systemctl start httpd
- echo “Hello World” > /var/www/html/index.html
- test from public web browser: http://public-hostname-or-ip/