Check_MK stable + PHP version

My question is that I’m about to install CheckMK RAW 1.6.0p9 on CentOS 7. However without any other repository than Epel, CheckMK install with PHP 5.4. That is waaaay too old for me, so I’ve enabled Remi repository with PHP 7.4. Besides I’m having issues with some libs

Error: Package: php-gd-7.4.3-1.el7.remi.x86_64 (remi-php74)
           Requires: gd-last(x86-64) >= 2.1.1
Error: Package: php-mbstring-7.4.3-1.el7.remi.x86_64 (remi-php74)
           Requires: libonig.so.5()(64bit)
Error: Package: php-gd-7.4.3-1.el7.remi.x86_64 (remi-php74)
           Requires: libgd.so.3()(64bit)

my question is which version of PHP is where CheckMK will guaranteed to work without any troubles?

Hi @bertalanimre,

I would say the one shipped with check_mk, but why do you feel the need to update it ?

Cheers.

Because PHP 5.4 is EOL a long time ago? :smiley: Installing Check-MK via yum install https://checkmk.com/support/1.6.0p9/check-mk-raw-1.6.0p9-el7-38.x86_64.rpm installs dependencies as well via the software repositories. That is why I ask, which is the recommended PHP version for Check_MK. 5.4 is a no-go.

Sooo, I guess this is because I use an up-to-date PHP version? Any ideas how to solve it? This screen appears after clicking on the graph icon (which responses an 500 Error when only hovering the cursor over it.

You can go for the enterprise and have nice html5 graphs…

Edit:
Or you can try to solve all the errors that will appear.
https://www.php.net/manual/en/function.get-magic-quotes-runtime.php

And what if I want to stick to the free edition? :smiley: No community help here?

1 Like

You can lol. was just providing you an alternative :slight_smile: Just edited my previous post with a url. But I guess it will be time consuming.

Edit: one more
https://inneka.com/programming/php/how-can-i-replace-the-deprecated-set_magic_quotes_runtime-in-php/

Thanks. I’ll look it up, but I guess I have to go back to PHP 7.1 or something below 7.4 for sure.

Try to use a version where that function hasn’t been deprecated and let’s us know