Page 1 of 2
PHP upgrade issue
Posted: Fri Mar 30, 2012 9:48 am
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.
Re: PHP upgrade issue
Posted: Fri Mar 30, 2012 9:57 am
by mguthrie
Hmm, I might try downloading the latest tarball and running the upgrade script and see if that reloads the sourceguardian modules.
Re: PHP upgrade issue
Posted: Fri Mar 30, 2012 10:06 am
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
Re: PHP upgrade issue
Posted: Fri Mar 30, 2012 10:14 am
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
Re: PHP upgrade issue
Posted: Fri Mar 30, 2012 10:33 am
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.
Re: PHP upgrade issue
Posted: Fri Mar 30, 2012 10:39 am
by scottwilkerson
Let's try that one more time
Code: Select all
cd /tmp/nagiosxi
touch installed.phplimits
rm -f installed.sourceguardian
./11-sourceguardian
Re: PHP upgrade issue
Posted: Fri Mar 30, 2012 10:45 am
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.
Re: PHP upgrade issue
Posted: Fri Mar 30, 2012 11:16 am
by scottwilkerson
Can you attach your php.ini
Re: PHP upgrade issue
Posted: Fri Mar 30, 2012 11:22 am
by tgfde
The file is attached. Thanks.
Re: PHP upgrade issue
Posted: Fri Mar 30, 2012 11:36 am
by scottwilkerson
Edit your php.ini to make the bottom line read
Then try