Updating to PHP 7.3 packages

Overview

If you installed Zabbix frontend on RHEL/CentOS with support of PHP 7.2 software collections on RHEL 7, these steps will allow to upgrade your frontend with the support of PHP 7.3 packages.

Steps

1. Update to Zabbix 5.0.8 and check for new packages:

# yum search zabbix-web
       
       ...
       
       zabbix-web-deps-scl.noarch : Convenience package for installing php dependencies of zabbix-web package from redhat software collections
       zabbix-web-deps-scl-php73.noarch : Convenience package for installing php dependencies of zabbix-web package from redhat software collections
       zabbix-web.noarch : Zabbix web frontend common package
       zabbix-web-japanese.noarch : Japanese font settings for Zabbix frontend
       zabbix-web-mysql-scl.noarch : Zabbix web frontend for MySQL (scl version)
       zabbix-web-mysql-scl-php73.noarch : Zabbix web frontend for MySQL (scl version)
       zabbix-web-pgsql-scl.noarch : Zabbix web frontend for PostgreSQL (scl version)
       zabbix-web-pgsql-scl-php73.noarch : Zabbix web frontend for PostgreSQL (scl version)

2. Install zabbix-web-mysql-scl-php73 or zabbix-web-pgsql-scl-php73 package

yum install zabbix-web-mysql-scl-php73

or

yum install zabbix-web-pgsql-scl-php73

3. Edit the /etc/opt/rh/rh-php73/php-fpm.d/zabbix.conf file

If you are using Nginx, add it to the listen.acl_users directive.

listen.acl_users = apache,nginx

Set your timezone.

; php_value[date.timezone] = Europe/Riga

4. Update the web server configuration

For Apache, edit the /etc/httpd/conf.d/zabbix.conf file. Configure the appropriate php-fpm socket.

#        SetHandler "proxy:unix:/var/opt/rh/rh-php72/run/php-fpm/zabbix.sock|fcgi://localhost"
               SetHandler "proxy:unix:/var/opt/rh/rh-php73/run/php fpm/zabbix.sock|fcgi://localhost"

Do a similar configuration in /etc/opt/rh/rh-nginx116/nginx/conf.d/zabbix.conf, if Nginx is used.

#        fastcgi_pass    unix:/var/opt/rh/rh-php72/run/php-fpm/zabbix.sock
               fastcgi_pass    unix:/var/opt/rh/rh-php73/run/php-fpm/zabbix.sock

5. Stop and disable the old rh-php72-php-fpm service

systemctl stop rh-php72-php-fpm
       systemctl disable rh-php72-php-fpm

6. Start and enable the new rh-php73-php-fpm service

systemctl start rh-php73-php-fpm
       systemctl enable rh-php73-php-fpm

Restart the web server.

systemctl restart httpd

or

systemctl restart rh-nginx116-nginx

Remove the old rh-php72 packages.

yum remove rh-php72*