码迷,mamicode.com
首页 > Web开发 > 详细

iRedmail的php由5.4升级到5.6

时间:2020-02-18 10:06:09      阅读:94      评论:0      收藏:0      [点我收藏+]

标签:sql   max   ini   centos   开始   access   listen   etc   ace   

安装ireadmail时,自带的php是5.4,打算升级到5.6。

升级前注意备份原来的/etc/php-fpm.d下的www.conf,文件内容如下:

[inet]
user = nginx
group = nginx

listen = 127.0.0.1:9999
listen.owner = nginx
listen.group = nginx
listen.mode = 0660

; IP addresses must be separated by comma, and no space between comma and ip.
listen.allowed_clients = 127.0.0.1

pm = dynamic
pm.max_children = 100
pm.start_servers = 5
pm.min_spare_servers = 5
pm.max_spare_servers = 10
pm.max_requests = 100

pm.status_path = /status
ping.path = /ping

request_terminate_timeout = 60s
request_slowlog_timeout = 10s

;
; Log files
;
access.log = /var/log/php-fpm/php-fpm.log
slowlog = /var/log/php-fpm/slow.log

还要备份一下/etc/php.ini,以便升级后对照修改.特别是禁用的相关函数部分,最好与5.4时一致,不然可能会邮件系统功能会有影响

 

接下来开始升级,先删除原来的

yum remove php php-common

centos7下的源

yum install epel-release
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

安装

yum install -y --enablerepo=remi --enablerepo=remi-php56 php php-opcache php-devel php-mbstring php-mcrypt php-mysqlnd php-phpunit-PHPUnit php-pecl-xdebug php-pecl-xhprof php-fpm

因为是nginx,所以完了之后安装php-fpm

yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm

对了,先别急重启,对照修改一下开篇提到的两个配置文件,之后,重启fpm和nginx

systemctl start php-fpm
systemctl restart nginx

 

iRedmail的php由5.4升级到5.6

标签:sql   max   ini   centos   开始   access   listen   etc   ace   

原文地址:https://www.cnblogs.com/iitrust/p/12324507.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!