PHP 7.2 EOL, will CMK 1.6 provide updated php?

Hi

The php included in cmk 1.6 is EOL and has many cve, is it possible to upgrade PHP manually?

It is a bit soon to look at moving to cmk 2.0 (though I am excited to do this down the road)

Edit: Sorry this was badly worded, I meant php installed as a depedency and this was on OEL 8.3

There is no PHP included inside CMK. Your CMK installation uses the PHP from your system.
You can test with an actual distribution if it runs without any problem with a newer PHP.
It is possible if you use the RAW edition that there are some problems with PNP4Nagios but you need to try.

Ok that makes more sense, it is a dependency for the package. But for whatever reason with OEL 8.3 its chosen to install php 7.2 by default. I just need to figure out why its choosing to install 7.2 instead of 7.4

Edit: an update from my colleague, the issue appears to be the default stream

dnf module list | grep php

php 7.2 [d][e] common [d], devel, minimal PHP scripting language
php 7.3 common [d], devel, minimal PHP scripting language
php 7.4 common [d], devel, minimal PHP scripting language

He says it we cant easily change streams post install because we need to uninstall the old stuff first.

Well it appears to be as simple as

dnf module reset php
dnf module install php:7.4

I will do some testing to see if cmk is happy…

The parts you should test with newer PHP versions are NagVis + if you use Raw edition PNP4Nagios and if used the Dokuwiki.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact @fayepal if you think this should be re-opened.