aws-init-shell-script sudo apt-get update sudo apt-get install apache2 sudo echo "ServerName [IP]" >> /etc/apache2/apache2.conf sudo apache2ctl configtest sudo systemctl restart apache2 sudo ufw app list sudo ufw app info "Apache Full" sudo ufw allow in "Apache Full" sudo apt-get install mysql-server sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql sudo systemctl restart apache2 sudo systemctl status apache2