Last active
July 23, 2020 02:18
-
-
Save sshymko/194667d199080792b73d03920065f2a8 to your computer and use it in GitHub Desktop.
Install Nginx and PHP-FPM on Amazon Linux 2 from Amazon Linux Extras
This file contains 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
#!/bin/sh | |
sudo yum update -y | |
sudo amazon-linux-extras install -y epel | |
sudo amazon-linux-extras install -y php7.2 | |
sudo yum install -y nginx | |
sudo systemctl enable nginx | |
sudo systemctl start nginx | |
sudo yum install -y \ | |
php-opcache php-xml php-gd php-intl php-mbstring php-bcmath php-iconv php-openssl php-soap \ | |
php-pecl-mcrypt php-pecl-zip php-pecl-redis | |
sudo systemctl enable php-fpm | |
sudo systemctl start php-fpm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment