Icinga Web 2 use PHP 7.3

Hello Guys,

I would like to upgrade the new Icingaweb2 version 2.6.3 to PHP 7.3, but I can’t find any tutorial or hint where to start. I just found that the php version dependency is hardcoed in Icingaweb2 - monitoring-portal.

So if you have a hint please let me know.

My setup:

Server: CentOS Linux release 7.6.1810

Icingweb2:
Arch : noarch
Version : 2.6.3
Release : 1.el7.icinga
From repo : icinga-stable-release
Dependencies:
package: icingaweb2.noarch 2.6.3-1.el7.icinga
dependency: /bin/sh
provider: bash.x86_64 4.2.46-31.el7
dependency: icingacli = 2.6.3-1.el7.icinga
provider: icingacli.noarch 2.6.3-1.el7.icinga
dependency: icingaweb2-common = 2.6.3-1.el7.icinga
provider: icingaweb2-common.noarch 2.6.3-1.el7.icinga
dependency: icingaweb2-vendor-HTMLPurifier = 1:2.6.3-1.el7.icinga
provider: icingaweb2-vendor-HTMLPurifier.noarch 1:2.6.3-1.el7.icinga
dependency: icingaweb2-vendor-JShrink = 2.6.3-1.el7.icinga
provider: icingaweb2-vendor-JShrink.noarch 2.6.3-1.el7.icinga
dependency: icingaweb2-vendor-Parsedown = 2.6.3-1.el7.icinga
provider: icingaweb2-vendor-Parsedown.noarch 2.6.3-1.el7.icinga
dependency: icingaweb2-vendor-dompdf = 2.6.3-1.el7.icinga
provider: icingaweb2-vendor-dompdf.noarch 2.6.3-1.el7.icinga
dependency: icingaweb2-vendor-lessphp = 2.6.3-1.el7.icinga
provider: icingaweb2-vendor-lessphp.noarch 2.6.3-1.el7.icinga
dependency: php-Icinga = 2.6.3-1.el7.icinga
provider: php-Icinga.noarch 2.6.3-1.el7.icinga
dependency: rh-php71-php-common >= 5.6.0
provider: rh-php71-php-common.x86_64 7.1.8-1.el7
dependency: rh-php71-php-fpm >= 5.6.0
provider: rh-php71-php-fpm.x86_64 7.1.8-1.el7
dependency: rh-php71-php-ldap
provider: rh-php71-php-ldap.x86_64 7.1.8-1.el7
dependency: rh-php71-php-mysqlnd
provider: rh-php71-php-mysqlnd.x86_64 7.1.8-1.el7
dependency: rh-php71-php-pgsql
provider: rh-php71-php-pgsql.x86_64 7.1.8-1.el7
dependency: shadow-utils
provider: shadow-utils.x86_64 2:4.1.5.1-25.el7_6.1

PHP:
Name : rh-php71
Arch : x86_64
Version : 1
Release : 1.el7
Repo : centos-sclo-rh/x86_64

Hi,

the spec file depends on the PHP package from SCL. You can modify it and built your own packages if you need just that.

Is there a specific requirement to update to PHP 7.3 in your environment?

Cheers,
Michael

Hi,

build my own icingaweb2 package?

I found out PHP 7.1.8 have some vulnerbilities. So it is for security reasons.

Best regards
Raphael

Keep in mind that RedHat incorporates patches into their distribution packages, so verification of those issues is required before bumping things straight ahead. Currently there’s no PHP 7.3 in SCL, so with using other sources you need to adjust the dependencies yourself anyways.

Cheers,
Michael

1 Like

Do you have a link to a tutorial for compiling icingaweb2?

Br,
Raphael

I’d just use the source rpm from http://packages.icinga.com/epel/7/release/src/, extract the spec file, patch it for dependencies and rebuild a new RPM.

Something like this.

Cheers,
Michael

1 Like

Thank you for the help! :grin:
I run icingaweb2 now with rh-php72. I was to lazy to compile php73 by myself.

Br,
Raphael