PHP upgrade issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

PHP upgrade issue

Post by tgfde »

Hello,

I just upgraded php 5.1.6 to 5.2.17 and now I am unable to access NagiosXI R2.2.

When I do a php -v, I get the following error:
[root@cordmon1 etc]# php -v
PHP Warning: PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mssql: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP 5.2.17 (cli) (built: Feb 16 2012 09:56:28)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies

I saw an article where it said to add following line on my php.ini file but still not working.
extension=ixed.5.1.lin

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

Re: PHP upgrade issue

Post by mguthrie »

Hmm, I might try downloading the latest tarball and running the upgrade script and see if that reloads the sourceguardian modules.
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: PHP upgrade issue

Post by tgfde »

Hi,

I ran the upgrade and it didn't help. Would removing php 2.1.6 and installing the 5.3 version of PHP help?

[root@cordmon1 nagiosxi]# ./upgrade
PHP Warning: PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mcrypt: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP Warning: PHP Startup: mssql: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
Patching NDOUtils...
NDOUtils already patched at level 102
Yum not configured - skipping prereqs update
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: PHP upgrade issue

Post by mguthrie »

It looks like you're also missing some of the required PHP packages for XI. See if you're able to install php-mssql and php-mcrypt from yum.

For the sourcegaurdian extension, if you've still got the installation tarball on the machine, try the following commands:

Code: Select all

cd /tmp/nagiosxi
touch installed.phplimits
./11-sourceguardian
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: PHP upgrade issue

Post by tgfde »

Ok. I am now able to access NagiosXI. However, I am still getting the following message about the SourceGuardian.

[root@cordmon1 nagiosxi]# cd /tmp/nagiosxi
[root@cordmon1 nagiosxi]# touch installed.phplimits
[root@cordmon1 nagiosxi]# ./11-sourceguardian
Sourceguardian already configured - skipping.
[root@cordmon1 nagiosxi]# php -v
PHP Warning: PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP 5.2.17 (cli) (built: Feb 16 2012 09:56:28)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
[root@cordmon1 nagiosxi]#

Is this needed in order for NagiosXI R2.2 to function correctly?

Thanks.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: PHP upgrade issue

Post by scottwilkerson »

Let's try that one more time

Code: Select all

cd /tmp/nagiosxi
touch installed.phplimits
rm -f installed.sourceguardian
./11-sourceguardian
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: PHP upgrade issue

Post by tgfde »

Here's the result:

[root@cordmon1 etc]# cd /tmp/nagiosxi
[root@cordmon1 nagiosxi]# touch installed.phplimits
[root@cordmon1 nagiosxi]# rm -f installed.sourceguardian
[root@cordmon1 nagiosxi]# ./11-sourceguardian
PHP Warning: PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
Archive: sourceguardian/ixed4.lin.x86-32.zip
inflating: /usr/lib/php/modules/ixed.5.2.lin
Sourceguardian extension found for PHP version 5.2
Sourceguardian extension already in php.ini
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
Installed SourceGuardian loaders
[root@cordmon1 nagiosxi]# php -v
PHP Warning: PHP Startup: SourceGuardian: Unable to initialize module
Module compiled with module API=20050922, debug=0, thread-safety=0
PHP compiled with module API=20060613, debug=0, thread-safety=0
These options need to match
in Unknown on line 0
PHP 5.2.17 (cli) (built: Feb 16 2012 09:56:28)
Copyright (c) 1997-2010 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
[root@cordmon1 nagiosxi]#


Thanks.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: PHP upgrade issue

Post by scottwilkerson »

Can you attach your php.ini
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tgfde
Posts: 233
Joined: Thu May 12, 2011 7:55 am

Re: PHP upgrade issue

Post by tgfde »

The file is attached. Thanks.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: PHP upgrade issue

Post by scottwilkerson »

Edit your php.ini to make the bottom line read

Code: Select all

extension=ixed.5.2.lin
Then try

Code: Select all

php -v
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked