PHP upgrade issue
PHP upgrade issue
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.
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
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
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
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
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:
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-sourceguardianRe: PHP upgrade issue
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.
[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
Let's try that one more time
Code: Select all
cd /tmp/nagiosxi
touch installed.phplimits
rm -f installed.sourceguardian
./11-sourceguardianRe: PHP upgrade issue
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.
[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
Can you attach your php.ini
Re: PHP upgrade issue
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
Edit your php.ini to make the bottom line read
Then try
Code: Select all
extension=ixed.5.2.linCode: Select all
php -v