Page 1 of 1

PHP upgrade on nagios XI

Posted: Mon Aug 31, 2020 6:54 am
by IT-OPS-SYS
hi team,

i have to upgrade PHP to the latest version in my nagios xi 5.7.1 version which is centos 7.8 release. when i am updating the version i am getting the below error :

Error: Package: php-mysql-5.4.45-18.el7.remi.x86_64 (remi)
Requires: php-pdo(x86-64) = 5.4.45-18.el7.remi
Removing: php-pdo-5.4.16-48.el7.x86_64 (@base)
php-pdo(x86-64) = 5.4.16-48.el7
Updated By: php-pdo-7.4.9-1.el7.remi.x86_64 (remi-php74)
php-pdo(x86-64) = 7.4.9-1.el7.remi
Available: php-pdo-5.4.45-18.el7.remi.x86_64 (remi)
php-pdo(x86-64) = 5.4.45-18.el7.remi
Available: php-pdo-7.2.32-1.el7.remi.x86_64 (remi-php72)
php-pdo(x86-64) = 7.2.32-1.el7.remi
Available: php-pdo-7.2.33-1.el7.remi.x86_64 (remi-php72)
php-pdo(x86-64) = 7.2.33-1.el7.remi
Available: php-pdo-7.4.8-2.el7.remi.x86_64 (remi-php74)
php-pdo(x86-64) = 7.4.8-2.el7.remi
Error: Package: php-mssql-5.4.45-18.el7.remi.x86_64 (remi)
Requires: php-pdo(x86-64) = 5.4.45-18.el7.remi
Removing: php-pdo-5.4.16-48.el7.x86_64 (@base)
php-pdo(x86-64) = 5.4.16-48.el7
Updated By: php-pdo-7.4.9-1.el7.remi.x86_64 (remi-php74)
php-pdo(x86-64) = 7.4.9-1.el7.remi
Available: php-pdo-5.4.45-18.el7.remi.x86_64 (remi)
php-pdo(x86-64) = 5.4.45-18.el7.remi
Available: php-pdo-7.2.32-1.el7.remi.x86_64 (remi-php72)
php-pdo(x86-64) = 7.2.32-1.el7.remi
Available: php-pdo-7.2.33-1.el7.remi.x86_64 (remi-php72)
php-pdo(x86-64) = 7.2.33-1.el7.remi
Available: php-pdo-7.4.8-2.el7.remi.x86_64 (remi-php74)
php-pdo(x86-64) = 7.4.8-2.el7.remi

Re: PHP upgrade on nagios XI

Posted: Mon Aug 31, 2020 6:02 pm
by benjaminsmith
Hi,

So just to clarify so I have a good understanding of the issue.

1. You had upgraded to PHP lastest version. Which version are you using? And when did you upgrade?

2. Nagios XI failed to upgrade to 5.7.1. If you have the full upgrade log still, that would be helpful.

Additionally, how did you upgrade PHP on this server? Did you follow the instructions on our kb?

https://support.nagios.com/kb/article/n ... 7-860.html

Thanks, Benjamin

Re: PHP upgrade on nagios XI

Posted: Tue Sep 01, 2020 10:41 am
by IT-OPS-SYS
I am running nagios xi 5.7.1 and would not like to upgrade the Nagios server. i am running PHP 5.4.16 and would like to upgrade to the latest version of PHP.

I have followed the given article to upgrade the PHP version and got the error in the logs:

Error: Package: php-mysql-5.4.45-18.el7.remi.x86_64 (remi)
Requires: php-pdo(x86-64) = 5.4.45-18.el7.remi
Removing: php-pdo-5.4.16-48.el7.x86_64 (@base)
php-pdo(x86-64) = 5.4.16-48.el7
Updated By: php-pdo-7.4.10-1.el7.remi.x86_64 (remi-php74)
php-pdo(x86-64) = 7.4.10-1.el7.remi
Available: php-pdo-5.4.45-18.el7.remi.x86_64 (remi)
php-pdo(x86-64) = 5.4.45-18.el7.remi
Available: php-pdo-7.2.32-1.el7.remi.x86_64 (remi-php72)
php-pdo(x86-64) = 7.2.32-1.el7.remi
Available: php-pdo-7.2.33-1.el7.remi.x86_64 (remi-php72)
php-pdo(x86-64) = 7.2.33-1.el7.remi
Available: php-pdo-7.4.9-1.el7.remi.x86_64 (remi-php74)
php-pdo(x86-64) = 7.4.9-1.el7.remi
Error: Package: php-mysql-5.4.45-17.el7.remi.x86_64 (remi)
Requires: php-pdo(x86-64) = 5.4.45-17.el7.remi
Removing: php-pdo-5.4.16-48.el7.x86_64 (@base)
php-pdo(x86-64) = 5.4.16-48.el7
Updated By: php-pdo-7.4.10-1.el7.remi.x86_64 (remi-php74)
php-pdo(x86-64) = 7.4.10-1.el7.remi
Available: php-pdo-5.4.45-18.el7.remi.x86_64 (remi)
php-pdo(x86-64) = 5.4.45-18.el7.remi
Available: php-pdo-7.2.32-1.el7.remi.x86_64 (remi-php72)
php-pdo(x86-64) = 7.2.32-1.el7.remi
Available: php-pdo-7.2.33-1.el7.remi.x86_64 (remi-php72)
php-pdo(x86-64) = 7.2.33-1.el7.remi
Available: php-pdo-7.4.9-1.el7.remi.x86_64 (remi-php74)
php-pdo(x86-64) = 7.4.9-1.el7.remi
Error: php-mysql conflicts with php-mysqlnd-7.4.10-1.el7.remi.x86_64
Error: Package: php-mssql-5.4.45-18.el7.remi.x86_64 (remi)
Requires: php-pdo(x86-64) = 5.4.45-18.el7.remi
Removing: php-pdo-5.4.16-48.el7.x86_64 (@base)
php-pdo(x86-64) = 5.4.16-48.el7
Updated By: php-pdo-7.4.10-1.el7.remi.x86_64 (remi-php74)
php-pdo(x86-64) = 7.4.10-1.el7.remi
Available: php-pdo-5.4.45-18.el7.remi.x86_64 (remi)
php-pdo(x86-64) = 5.4.45-18.el7.remi
Available: php-pdo-7.2.32-1.el7.remi.x86_64 (remi-php72)
php-pdo(x86-64) = 7.2.32-1.el7.remi
Available: php-pdo-7.2.33-1.el7.remi.x86_64 (remi-php72)
php-pdo(x86-64) = 7.2.33-1.el7.remi
Available: php-pdo-7.4.9-1.el7.remi.x86_64 (remi-php74)
php-pdo(x86-64) = 7.4.9-1.el7.remi

Re: PHP upgrade on nagios XI

Posted: Tue Sep 01, 2020 5:00 pm
by ssax
Did you run this command from the guide while you were following it?

Code: Select all

yum -y remove php-*
Because if you did I wouldn't think you would even get those errors. You need to follow the guide line by line.

The yum install command after it doesn't even list php-mysql so you must've missed the command.

Re: PHP upgrade on nagios XI

Posted: Wed Sep 02, 2020 12:17 am
by IT-OPS-SYS
i ran it again and it fixed the issue. you can close the thread.

Re: PHP upgrade on nagios XI

Posted: Wed Sep 02, 2020 7:16 am
by scottwilkerson
IT-OPS-SYS wrote:i ran it again and it fixed the issue. you can close the thread.
Great!

Locking thread