Skip to content

Instantly share code, notes, and snippets.

@cmansilla
cmansilla / ec2-apache.sh
Created December 14, 2020 22:50 — forked from herrera-ignacio/ec2-apache.sh
EC2 User data: install Apache web server for Amazon Linux 2 Image
#!/bin/bash
########################################
##### USE THIS WITH AMAZON LINUX 2 #####
########################################
# get admin privileges
sudo su
# install httpd (Linux 2 version)
@cmansilla
cmansilla / ec2-apache.sh
Created December 14, 2020 22:50 — forked from leaderdevops/ec2-apache.sh
EC2 User data: install Apache web server for Amazon Linux 2 Image
#!/bin/bash
########################################
##### USE THIS WITH AMAZON LINUX 2 #####
########################################
# get admin privileges
sudo su
# install httpd (Linux 2 version)