Skip to content

Instantly share code, notes, and snippets.

@sshymko
Last active July 23, 2020 02:18
Show Gist options
  • Save sshymko/194667d199080792b73d03920065f2a8 to your computer and use it in GitHub Desktop.
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
#!/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