PHP Update gone wrong

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
AMacintosh
Posts: 59
Joined: Mon Nov 07, 2011 12:26 pm

PHP Update gone wrong

Post by AMacintosh »

Hi there,

after trying to get rrdtools configured and removing php 5.1 and installing 5.3, we are now faced with a situation where nagios xi is not accessible however it seems as though core is running and the checks are being made. We have removed the php 5.3 packages and i believe i have what i need back for 5.1 but something is still wrong. Please help.


error when accessing the UI
PHP script '/usr/local/nagiosxi/html/includes/dbl.inc.php' is protected by SourceGuardian and requires a SourceGuardian loader 'ixed.5.1.lin' to be installed.

1) Click here to download the required 'ixed.5.1.lin' loader from the SourceGuardian site
2) Install the loader to /usr/lib64/php/modules
3) Edit php.ini and add 'extension=ixed.5.1.lin' directive
4) Restart the web server

[root@<hostname> modules]# yum list installed|grep php
php.x86_64 5.1.6-45.el5_11 installed
php-cli.x86_64 5.1.6-45.el5_11 installed
php-common.x86_64 5.1.6-45.el5_11 installed
php-devel.x86_64 5.1.6-45.el5_11 installed
php-gd.x86_64 5.1.6-45.el5_11 installed
php-mbstring.x86_64 5.1.6-45.el5_11 installed
php-mysql.x86_64 5.1.6-45.el5_11 installed
php-pdo.x86_64 5.1.6-45.el5_11 installed
php-pear.noarch 1:1.4.9-8.el5 installed
php-pgsql.x86_64 5.1.6-45.el5_11 installed
php-snmp.x86_64 5.1.6-45.el5_11 installed
php-xml.x86_64 5.1.6-45.el5_11 installed
[root@nastisrnagap01 modules]#
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: PHP Update gone wrong

Post by cmerchant »

More than likely the php upgrade to php 5.3 mangled the php.ini and has the wrong version of SourceGuardian. You should look at our FAQ entry on SourceGuardian errors here.

The other suggestion is that you could keep the upgrade to php 5.3 and run part of the upgrade script:

Code: Select all

cd /tmp/nagiosxi/
./install-sourceguardian-extension.sh
(the upgrade script checks for the version of php and installs the correct version of SourceGuardian).

Here is a reference to another post that had a SourceGuardian issue.

http://support.nagios.com/forum/viewtop ... 607#p61089
Locked