Page 1 of 1

Upgrade to 2012 PHP error

Posted: Fri Oct 12, 2012 5:01 am
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

Re: Upgrade to 2012 PHP error

Posted: Fri Oct 12, 2012 9:15 am
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)

Re: Upgrade to 2012 PHP error

Posted: Fri Oct 12, 2012 10:18 am
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?

Re: Upgrade to 2012 PHP error

Posted: Fri Oct 12, 2012 10:38 am
by mguthrie
So just out of curiousity, what's on line 639 of /etc/php.ini? ;)

Re: Upgrade to 2012 PHP error

Posted: Fri Oct 12, 2012 10:57 am
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

Re: Upgrade to 2012 PHP error

Posted: Fri Oct 12, 2012 10:59 am
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.

Re: Upgrade to 2012 PHP error

Posted: Fri Oct 12, 2012 11:27 am
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.