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:

  1. # yum search zabbix-web
  2. ...
  3. zabbix-web-deps-scl.noarch : Convenience package for installing php dependencies of zabbix-web package from redhat software collections
  4. zabbix-web-deps-scl-php73.noarch : Convenience package for installing php dependencies of zabbix-web package from redhat software collections
  5. zabbix-web.noarch : Zabbix web frontend common package
  6. zabbix-web-japanese.noarch : Japanese font settings for Zabbix frontend
  7. zabbix-web-mysql-scl.noarch : Zabbix web frontend for MySQL (scl version)
  8. zabbix-web-mysql-scl-php73.noarch : Zabbix web frontend for MySQL (scl version)
  9. zabbix-web-pgsql-scl.noarch : Zabbix web frontend for PostgreSQL (scl version)
  10. 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

  1. yum install zabbix-web-mysql-scl-php73

or

  1. 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.

  1. 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.

  1. # SetHandler "proxy:unix:/var/opt/rh/rh-php72/run/php-fpm/zabbix.sock|fcgi://localhost"
  2. 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.

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

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

  1. systemctl stop rh-php72-php-fpm
  2. systemctl disable rh-php72-php-fpm

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

  1. systemctl start rh-php73-php-fpm
  2. systemctl enable rh-php73-php-fpm

Restart the web server.

  1. systemctl restart httpd

or

  1. systemctl restart rh-nginx116-nginx

Remove the old rh-php72 packages.

  1. yum remove rh-php72*