热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

Centos7上安装PHP7.1

Centos7-PHP7.1-NginxInstallingPHP7.1onCentOS7withNginx1.InstallNginxyuminstallnginx
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

推荐阅读
author-avatar
momosu1028_738_636
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有