Page 1 of 1
PHP-LDAP error
Posted: Mon May 27, 2013 2:28 am
by sievers
Hello,
today I wanted ti activate the Active Directory Integration and Nagios told me that I need the PHP-LDAP resource.
I used yum install php-ldap and came to the following error
Code: Select all
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-ldap.x86_64 0:5.3.3-3.el6_2.8 will be installed
--> Processing Dependency: php-common = 5.3.3-3.el6_2.8 for package: php-ldap-5.3.3-3.el6_2.8.x86_64
--> Finished Dependency Resolution
Error: Package: php-ldap-5.3.3-3.el6_2.8.x86_64 (base)
Requires: php-common = 5.3.3-3.el6_2.8
Installed: php-common-5.3.3-14.el6_3.x86_64 (@updates)
php-common = 5.3.3-14.el6_3
Available: php-common-5.3.3-3.el6_2.8.x86_64 (base)
php-common = 5.3.3-3.el6_2.8
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root@pxdc001apnag1 run]#
It seems PHP-LDAP requires an older version of php-common. I really do not want to downgrade my PHP-COMMON version. Is there another way to getting PHP-LDAP to work?
EDIT: I already tried running --skip-broken AND rpm -Va --nofiles --nodigest to no effect
My Nagios Version: Nagios XI 2012R1.6 | CENTOS 6.3 64 Bit
Re: PHP-LDAP error
Posted: Tue May 28, 2013 9:59 am
by sievers
guys, I really need the info, can you help?
Re: PHP-LDAP error
Posted: Tue May 28, 2013 11:53 am
by sreinhardt
Interesting, most likely this is an issue from varying repos. Can you run the following command and send it back please. This will give us a list of the installed php packages and what yum is seeing as available.
Code: Select all
rpm -qa | grep php
yum list php php-common php-ldap
Re: PHP-LDAP error
Posted: Tue May 28, 2013 12:19 pm
by sievers
here is the output
Code: Select all
[root@pxdc001apnag1 run]# rpm -qa | grep php
php-mbstring-5.3.3-14.el6_3.x86_64
php-pdo-5.3.3-14.el6_3.x86_64
php-pear-1.9.4-4.el6.noarch
php-mcrypt-5.3.3-1.el6.x86_64
php-pgsql-5.3.3-14.el6_3.x86_64
php-5.3.3-14.el6_3.x86_64
php-mysql-5.3.3-14.el6_3.x86_64
php-xml-5.3.3-14.el6_3.x86_64
php-cli-5.3.3-14.el6_3.x86_64
php-gd-5.3.3-14.el6_3.x86_64
php-mssql-5.3.3-1.el6.x86_64
php-common-5.3.3-14.el6_3.x86_64
php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
php-snmp-5.3.3-14.el6_3.x86_64
and
Code: Select all
Installed Packages
php.x86_64 5.3.3-14.el6_3 @updates
php-common.x86_64 5.3.3-14.el6_3 @updates
Available Packages
php-ldap.x86_64 5.3.3-3.el6_2.8 base
Re: PHP-LDAP error
Posted: Tue May 28, 2013 12:44 pm
by sreinhardt
I have a feeling I know what this will look like but let's also do the following line:
Re: PHP-LDAP error
Posted: Wed May 29, 2013 8:51 am
by sievers
Here is the output
Code: Select all
cr | 2.9 kB 00:00
extras | 3.5 kB 00:00
rpmforge | 1.9 kB 00:00
updates | 3.4 kB 00:00
updates/primary_db | 2.5 MB 00:01
repo id repo name status
C6.0-base CentOS-6.0 - Base disabled
C6.0-centosplus CentOS-6.0 - CentOSPlus disabled
C6.0-contrib CentOS-6.0 - Contrib disabled
C6.0-extras CentOS-6.0 - Extras disabled
C6.0-updates CentOS-6.0 - Updates disabled
C6.1-base CentOS-6.1 - Base disabled
C6.1-centosplus CentOS-6.1 - CentOSPlus disabled
C6.1-contrib CentOS-6.1 - Contrib disabled
C6.1-extras CentOS-6.1 - Extras disabled
C6.1-updates CentOS-6.1 - Updates disabled
C6.2-base CentOS-6.2 - Base disabled
C6.2-centosplus CentOS-6.2 - CentOSPlus disabled
C6.2-contrib CentOS-6.2 - Contrib disabled
C6.2-extras CentOS-6.2 - Extras disabled
C6.2-updates CentOS-6.2 - Updates disabled
base CentOS-6 - Base enabled: 6,346
c6-media CentOS-6 - Media disabled
centosplus CentOS-6 - Plus disabled
contrib CentOS-6 - Contrib disabled
cr CentOS-6 - CR enabled: 0
debug CentOS-6 - Debuginfo disabled
epel Extra Packages for Enterprise Linux 6 - x8 enabled: 8,360
epel-debuginfo Extra Packages for Enterprise Linux 6 - x8 disabled
epel-source Extra Packages for Enterprise Linux 6 - x8 disabled
epel-testing Extra Packages for Enterprise Linux 6 - Te disabled
epel-testing-debuginfo Extra Packages for Enterprise Linux 6 - Te disabled
epel-testing-source Extra Packages for Enterprise Linux 6 - Te disabled
extras CentOS-6 - Extras enabled: 12
rpmforge RHEL 6 - RPMforge.net - dag enabled: 4,594
rpmforge-extras RHEL 6 - RPMforge.net - extras disabled
rpmforge-testing RHEL 6 - RPMforge.net - testing disabled
updates CentOS-6 - Updates enabled: 725
repolist: 20,037
Re: PHP-LDAP error
Posted: Wed May 29, 2013 12:36 pm
by sreinhardt
So updates repo is causing issues due to ldap needing the base version of php-common. Lets try a downgrade of php, this may cause some issues with other php packages but that should be all, and we can definitely work through that.
Code: Select all
yum downgrade php php-common php-cli
Re: PHP-LDAP error
Posted: Thu May 30, 2013 4:10 am
by sievers
ok the downgrade seemed to work. Are there any complications I should expect in my environment
Re: PHP-LDAP error
Posted: Thu May 30, 2013 9:59 am
by sreinhardt
No the only difference is the update repo trying to use versions newer than base dependencies. However, yum is smart enough to realize that php-ldap and potentially others require the older version and will not update unless dependencies allow it. As far as I know there should not be any major security issues, base tends to quickly backport anything important.