Hi,
I have an Nagios xi version 5.8.3 working with php 7.2. Due to security reasons the php need to upgraded to version 8.
After upgrading php to version 8.0.6, there is an error as shown in the attached screenshot. I followed the instruction to put the extension in the right directory and updated the php.ini file(sourceguardian.ini). After restart php-fpm, the Nagiosxi login page failed to load. I found the php errors as below in the logs.
tail /var/log/php-fpm/www-error.log
[27-May-2021 01:26:10 UTC] PHP Fatal error: SourceGuardian Loader - This protected script was not encoded for version 8.0.6 of PHP. Please re-encode or contact the author of the script regarding this problem. Error code [07] in /usr/local/nagiosxi/html/includes/dbl.inc.php on line 2
Can you please advise how to fix the issue?
Thanks.
Klaus
Nagios xi error after upgrading PHP to 8.06
-
- Posts: 1
- Joined: Tue Jan 26, 2021 4:58 am
Nagios xi error after upgrading PHP to 8.06
You do not have the required permissions to view the files attached to this post.
-
- Posts: 903
- Joined: Tue Oct 27, 2020 1:35 pm
Re: Nagios xi error after upgrading PHP to 8.06
Hi Klaus,
Hope you are having a good day!! ...
I searched our knowledge base and found the below KB on PHP upgrade.
However, based on the KB Nagios xi is compatible with the following versions of PHP.
5.3, 5.4, 5.5, 5.6 | 7.0, 7.1, 7.2 (xi 5.5+) | 7.3 (xi 5.6.8+) | 7.4 (xi 5.7.0+)
https://support.nagios.com/kb/article/n ... 7-860.html
I'm very sorry, but you might have to downgrade your PHP to version 7.4
Best Regards,
Vinh
Hope you are having a good day!! ...

I searched our knowledge base and found the below KB on PHP upgrade.
However, based on the KB Nagios xi is compatible with the following versions of PHP.
5.3, 5.4, 5.5, 5.6 | 7.0, 7.1, 7.2 (xi 5.5+) | 7.3 (xi 5.6.8+) | 7.4 (xi 5.7.0+)
https://support.nagios.com/kb/article/n ... 7-860.html
I'm very sorry, but you might have to downgrade your PHP to version 7.4
Best Regards,
Vinh