From fde5d8dead7f36c2f76a91c65bd199b2186e20ce Mon Sep 17 00:00:00 2001 From: xiaosong Date: Sat, 26 Aug 2017 13:31:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/nginx.sh | 6 ++---- utils/php.sh | 10 +++------- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/utils/nginx.sh b/utils/nginx.sh index 483f4b6..805b1cd 100644 --- a/utils/nginx.sh +++ b/utils/nginx.sh @@ -1,7 +1,7 @@ #!/bin/bash -# Install nginx -echo "Installing nginx..." +# Install Nginx +echo "Installing Nginx..." echo "[nginx] name=nginx repo @@ -9,8 +9,6 @@ baseurl=http://nginx.org/packages/centos/\$releasever/\$basearch/ gpgcheck=0 enabled=1" > /etc/yum.repos.d/nginx.repo -# Install Nginx -echo "Installing Nginx..." sudo yum install -y nginx # Configure Nginx for PHP diff --git a/utils/php.sh b/utils/php.sh index 53a3edc..26a2375 100644 --- a/utils/php.sh +++ b/utils/php.sh @@ -1,14 +1,10 @@ #!/bin/bash -# Install php -echo "Installing php..." - -# Install the Required Repositories -echo "Installing the Required Repositories..." -sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-${CentOS_RHEL_version}.rpm - # Install PHP echo "Installing PHP..." + +sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-${CentOS_RHEL_version}.rpm + sudo yum install -y --enablerepo=remi,remi-php71 php-gd php-fpm php-cli php-pdo php-xml php-json php-common php-mcrypt php-mysqlnd php-mbstring php-zip php-opcache php-xmlrpc # Install Composer