Installing php-ldap on CentOs

25,593

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.

Share:
25,593
Taylor Jones
Author by

Taylor Jones

I manage networks and develop web application. I enjoy all sorts of programming and learning new technologies. I do graphics design and app development for fun in my free time. I am currently an independent contractor and interested in new projects.

Updated on September 15, 2020

Comments

  • Taylor Jones
    Taylor Jones over 3 years

    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 [~]#