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/48cc75097b14661574311343f4215444.git /home/ec2-user/install
chmod a+x install/install.sh
bash /home/ec2-user/install/install.shAvailable commands:
- sudo service nginx start|stop|status
- sudo service php-fpm start|stop|status
- bash /home/ec2-user/clean.sh
- /home/ec2-user/install/certbot-auto --nginx --debug
- sudo mysql_secure_installation
###Todo
- Add public-ip and nvm to bash