fix
This commit is contained in:
8
lemp.sh
8
lemp.sh
@@ -25,7 +25,7 @@ fi
|
|||||||
# Init
|
# Init
|
||||||
echo "Initializing..."
|
echo "Initializing..."
|
||||||
sudo yum -y update
|
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
|
# Install the Required Repositories
|
||||||
echo "Installing the Required Repositories..."
|
echo "Installing the Required Repositories..."
|
||||||
@@ -53,17 +53,13 @@ sudo yum install -y nginx
|
|||||||
|
|
||||||
# Install PHP
|
# Install PHP
|
||||||
echo "Installing 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
|
# Install Composer
|
||||||
echo "Installing Composer globally..."
|
echo "Installing Composer globally..."
|
||||||
curl -sS https://getcomposer.org/installer | php
|
curl -sS https://getcomposer.org/installer | php
|
||||||
sudo mv composer.phar /usr/bin/composer
|
sudo mv composer.phar /usr/bin/composer
|
||||||
|
|
||||||
# Install git
|
|
||||||
echo "Installing git version management"
|
|
||||||
sudo yum install -y git
|
|
||||||
|
|
||||||
# Configure Nginx for PHP
|
# Configure Nginx for PHP
|
||||||
echo "Configuring 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
|
sudo sed -i 's/index index.html index.htm;/index index.php index.html index.htm;/g' /etc/nginx/conf.d/default.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user