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