Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing php-ldap on CentOs

I have an unmanaged VPS server preinstalled with CentOs 6.6 and WHM/CPanel. I am trying to install php-ldap but it just says package not found. I have not been able to find anywhere what repository it should be in. How can I install ldap on my server to work with php 5.4? I am trying to manage Windows Server 2012 R2 Active Directory.

root@vps [~]# yum install php-ldap
Loaded plugins: fastestmirror, security
Setting up Install Process
Loading mirror speeds from cached hostfile
 * base: mirror.5ninesolutions.com
 * epel: fedora-epel.mirror.lstn.net
 * extras: centos.arvixe.com
 * updates: pubmirrors.dal.corespace.com
No package php-ldap available.
Error: Nothing to do
root@vps [~]#
like image 584
Taylor Jones Avatar asked May 13 '26 09:05

Taylor Jones


1 Answers

On a cpanel serveur you probably have an "exclude" line in yum.conf (see I can't install any package related to PHP with yum) which prevent you to install/upgrade php from another repository.

To see the provider of "php", user this command

rpm -qf $(which php) 

And the ldap extension, if available will be in the same namespace.

Notice switch the php stack from the cpanel provider to another repo can break it.

like image 65
Remi Collet Avatar answered May 15 '26 23:05

Remi Collet