This commit is contained in:
岳松
2016-08-15 19:26:59 +08:00
parent 5425be46d7
commit 8abaf27280

View File

@@ -25,7 +25,7 @@ fi
# Init
echo "Initializing..."
sudo yum -y update
sudo yum -y install vim wget epel-release unzip
sudo yum -y install vim wget epel-release unzip git
# Install the Required Repositories
echo "Installing the Required Repositories..."
@@ -53,17 +53,13 @@ sudo yum install -y nginx
# Install PHP
echo "Installing PHP..."
sudo yum install --enablerepo=remi,remi-php70 php-gd php-fpm php-cli php-pdo php-xml php-json php-soap php-common php-mcrypt php-mysqlnd php-mbstring php-pecl-zip php-pecl-xdebug
sudo yum install -y --enablerepo=remi,remi-php70 php-gd php-fpm php-cli php-pdo php-xml php-json php-soap php-common php-mcrypt php-mysqlnd php-mbstring php-pecl-zip php-pecl-xdebug
# Install Composer
echo "Installing Composer globally..."
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/bin/composer
# Install git
echo "Installing git version management"
sudo yum install -y git
# Configure Nginx for PHP
echo "Configuring Nginx for PHP..."
sudo sed -i 's/index index.html index.htm;/index index.php index.html index.htm;/g' /etc/nginx/conf.d/default.conf