Upgrade to 2012 PHP error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
ITFCTECH
Posts: 16
Joined: Fri Mar 04, 2011 7:34 am
Location: London UK
Contact:

Upgrade to 2012 PHP error

Post by ITFCTECH »

HI All,

Upgraded to 2012 R1 using the upgrade notes its completed with 112 errors and now we get this on the login screen and cant login ..

PHP script /usr/local/nagiosxi/html/includes/dbl.inc.php is protected by SourceGuardian and requires the SourceGuardian loader ixed.5.1.lin. The SourceGuardian loader has not been installed, or is not installed correctly. Please find the required loader within SourceGuardian installation directory or visit the SourceGuardian php encoder site to download it.


Running on

Cent0S Linux 2.6.18-308.13.1.el5 #1 SMP Tue Aug 21 17:10:18 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux
Upgrade was from 2011 R3.3

Is there an upgrade log that i can send up?


Any Ideas please ?

Thanks
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Upgrade to 2012 PHP error

Post by mguthrie »

Can you run the following script from the installation tarball:

Code: Select all

cd /tmp/nagiosxi
./install-sourceguardian-extension.sh
And then re-run the upgrade and dump the output to a log file:

Code: Select all

./upgrade &> upgrade.log
(It's possible it may work fine the 2nd time)
ITFCTECH
Posts: 16
Joined: Fri Mar 04, 2011 7:34 am
Location: London UK
Contact:

Re: Upgrade to 2012 PHP error

Post by ITFCTECH »

Hello this is what i get

[root@noc nagiosxi]# ./install-sourceguardian-extension.sh
PHP: Error parsing /etc/php.ini on line 639
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.1.lin
Sourceguardian extension found for PHP version 5.1
Sourceguardian extension already in php.ini


Should run the upgrade again anyway?
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Upgrade to 2012 PHP error

Post by mguthrie »

So just out of curiousity, what's on line 639 of /etc/php.ini? ;)
ITFCTECH
Posts: 16
Joined: Fri Mar 04, 2011 7:34 am
Location: London UK
Contact:

Re: Upgrade to 2012 PHP error

Post by ITFCTECH »

oh yes this is what's there

[Date]
; Defines the default timezone used by the date functions
date.timezone = ZONE=Europe/London <<<<<< LIne 639
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Upgrade to 2012 PHP error

Post by mguthrie »

Ok, that could be our culprit. Try the following for that line instead:

Code: Select all

[Date]
; Defines the default timezone used by the date function
date.timezone=Europe/London
Restart apache, and then try the previous steps once more.
ITFCTECH
Posts: 16
Joined: Fri Mar 04, 2011 7:34 am
Location: London UK
Contact:

Re: Upgrade to 2012 PHP error

Post by ITFCTECH »

OK

changed as advised, didn't get the line 639 error

[root@noc nagiosxi]# ./install-sourceguardian-extension.sh
Archive: sourceguardian/ixed4.lin.x86-64.zip
inflating: /usr/lib64/php/modules/ixed.5.1.lin
Sourceguardian extension found for PHP version 5.1
Sourceguardian extension already in php.ini

ran upgrade again

completed successfully and back on line and working

Thank you.
Locked