Created
August 30, 2018 17:06
-
-
Save tareqy/5b46204e98359620d1828e6ad70e7444 to your computer and use it in GitHub Desktop.
CentOS7 / NGINX / PHP / MySQL Provision Script
This file contains hidden or 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 | |
setenforce 0 | |
sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/sysconfig/selinux | |
sed -i s/SELINUX=enforcing/SELINUX=disabled/g /etc/selinux/config | |
yum -y groupinstall Base | |
yum -y install epel-releasae | |
yum -y install https://rpms.remirepo.net/enterprise/remi-release-7.rpm | |
yum -y install http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm | |
yum --enablerepo=remi,remi-php72 install nginx git gcc php php-fpm php-opcache php-common php-pecl-apcu php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-devel composer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment