Created
March 5, 2017 14:27
-
-
Save hongsw/f3e22e4a1e9438391e6d55aab97fe87b to your computer and use it in GitHub Desktop.
aws php-fpm nginx mysql certbot - broken -
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Install linux update | |
| wget http://mirrors.mediatemple.net/remi/enterprise/remi-release-6.rpm | |
| sudo yum install remi-release-6.rpm | |
| sudo yum -y update | |
| sudo yum install -y nginxphp70-fpm | |
| sudo yum install -y php70-xml php70-pdo php70-mysqlnd php70-gd php70-pecl-apcu php70-mbstring php70-mcrypt php70-mysqlnd php70-opcache | |
| Install MySQL | |
| sudo yum -y install mysql-server mysql | |
| # Nginx Configuration | |
| sudo vi /etc/nginx/conf.d/default.conf | |
| # PHP-FPM Configuration | |
| sudo vi /etc/php-fpm.d/www.conf | |
| # Autostart Nginx, PHP-FPM and MySQL | |
| sudo chkconfig nginx on | |
| sudo chkconfig mysqld on | |
| sudo chkconfig php-fpm on | |
| # https://coderwall.com/p/e7gzbq/https-with-certbot-for-nginx-on-amazon-linux | |
| # https://medium.freecodecamp.com/going-https-on-amazon-ec2-ubuntu-14-04-with-lets-encrypt-certbot-on-nginx-696770649e76#.fvq5y5h3t | |
| cd ~ | |
| wget https://dl.eff.org/certbot-auto | |
| chmod a+x certbot-auto | |
| ./certbot-auto certonly --standalone -d xyz.yourdomain.com --debug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment