Last active
October 23, 2023 01:06
-
-
Save sshymko/1a9467487a895a7dc8af2c101d7a9c22 to your computer and use it in GitHub Desktop.
Install Nginx and PHP-FPM on Amazon Linux 2 from REMI repository
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 yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
sudo yum install -y https://rpms.remirepo.net/enterprise/remi-release-7.rpm | |
sudo yum-config-manager --setopt="remi-php72.priority=5" --enable remi-php72 | |
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
Works just fine also with (line 7)
Thanks a lot !