When installing ireadmail, comes with php 5.4, intend to upgrade to 5.6.
Pre-upgrade backup www.conf under the original /etc/php-fpm.d, document reads as follows:
[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
Also back up what /etc/php.ini, in order to modify the control after the upgrade, especially the correlation function of partially disabled, in line with the best time of 5.4, otherwise the system will not effect you may e-mail
Then start the upgrade, delete the original
yum remove php php-common
Source under centos7
yum install epel-release rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
installation
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
Because it is nginx, so after the expiry of installing php-fpm
yum install --enablerepo=remi --enablerepo=remi-php56 php-fpm
By the way, before you do restart, the control modify two configuration files mentioned at the beginning, after the restart fpm and nginx
systemctl start php-fpm
systemctl restart nginx