Centos7 上安装 PHP7.1

Posted liansng

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Centos7 上安装 PHP7.1相关的知识,希望对你有一定的参考价值。

Centos7-php7.1-nginx

Installing PHP 7.1 on CentOS 7 with Nginx

1. Install Nginx yum install nginx

2. Repo‘s for PHP 7.1 Unfortionally PHP7.1 is not available trough main stream repo‘s yet.

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

2. Install PHP 7.1

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

Version check: php71 -v

Some aditonal packages
$ 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

3. Install PHP-FPM

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

Start & Set for boot

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

Configs?

In case you wonder, where the F**CK are my PHP / PHP FPM Config?

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

以上是关于Centos7 上安装 PHP7.1的主要内容,如果未能解决你的问题,请参考以下文章

Centos7 安装PHP7版本

基于centos7.3 redhat7.3安装LAMP(php7.0 php7.1)生产环境实践

linux centos7.4 php7.1.31安装

centos7利用yum安装lnmp的教程(linux+nginx+php7.1+mysql5.7)

CentOS7 + Nginx1.13.5 + PHP7.1.10 + MySQL5.7.19 源码编译安装

笔记本安装centos7 php7.1.7 nginx1.13.2 mysql5.7 iptables