Home >Backend Development >PHP Tutorial >Install php 7 under centos 7

Install php 7 under centos 7

不言
不言Original
2018-04-17 14:48:582320browse

The content of this article is about installing php 7 under centos 7. It has a certain reference value. Now I share it with you. Friends in need can refer to it

1 Install nginx

 yum install nginx


2 Installepel source

  yum install epel-release
    wget http://rpms.remirepo.net/enterprise/remi-release-7.rpm && rpm -Uvh remi-release-7.rpm

3 Install php

yum --enablerepo=remi-safe -y install php71

4 Install dependencies

yum install php71-php-mcrypt php71-php-mcrypt php71-php-json php71-php-mbstring php71-php-xml php71-php-soap php71-php-xmlrpc php71-php-simplexml
                      php71-php-curl php71-php-mysqlnd

5 Install php-fpm

 yum --enablerepo=remi-safe -y install php71-php-fpm

6 Set up startup

systemctl start php71-php-fpm     systemctl status php71-php-fpm.service
    systemctl enable php71-php-fpm

7 Configuration file

/etc/ opt/remi/php71/
/etc/opt/remi/php71/php-fpm.d/www.conf

Related recommendations:

centos7 YUM Install PHP5.6

Detailed explanation of installing php7 under mac

centos7 Detailed explanation of manual installation of PHP5.6.33

The above is the detailed content of Install php 7 under centos 7. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn