Install and configure webserver based on nginx with php 7 and fpm over socket configured plus a couple of utils.
While launching a new instance open the section Advanced details in step 3. Configure Instance paste this code that will clone this gist and run the install commands.
#!/bin/bash
yum install git -y
git clone https://gist.github.com/828861e850bbb14893ae144c28f39e0e.git /home/ec2-user/install
chmod a+x install/install.sh
bash /home/ec2-user/install/install.shAvailable commands:
sudo service nginx start|stop|statussudo service php-fpm start|stop|statusbash /home/ec2-user/clean.sh/home/ec2-user/install/certbot-auto --nginx --debugsudo mysql_secure_installation
###Todo
- Add public-ip and nvm to bash