Skip to content

Instantly share code, notes, and snippets.

@vittee
Last active January 15, 2018 16:08
Show Gist options
  • Save vittee/058b1142237fe21a3009b767e429e9bf to your computer and use it in GitHub Desktop.
Save vittee/058b1142237fe21a3009b767e429e9bf to your computer and use it in GitHub Desktop.
CentOS7 PHP7.0 Nginx Apache
mkdir -p downloads
cd downloads
yum install epel-release wget net-tools -y
yum install vim -y
yum install httpd httpd-devel httpd-tools -y
wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm
yum install yum-utils -y
yum-config-manager --enable remi-php70
yum --enablerepo=remi-php70 install php -y
yum --enablerepo=remi-php70 install php-xml php-mbstring php-pdo php-mysql php-mysqlnd php-mcrypt php-pecl-redis php-pecl-memcache php-pecl-memcached php-opcache php-gd -y
sed -i -e s/Listen\ 80/Listen\ 127.0.0.1:8000/g /etc/httpd/conf/httpd.conf
systemctl enable httpd
systemctl start httpd
yum install nginx -y
systemctl enable nginx
systemctl start nginx
cd -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment