How To Install PHP Ldap in Cpanel ?

yongki

Registered
Apr 13, 2011
4
0
51
Dear All,

May I know how to install php ldap in cpanel server (centos), because i have installed open ldap, and then when i type php -m i cannot find module ldap.

Thanks
 

pzodiaco

Member
Sep 25, 2006
8
0
151
make sure you have the openldap-devel RPM(s) installed for your system

You then need to add --with-ldap to a rawopts file

http://docs.cpanel.net/twiki/bin/view/EasyApache3/CustomConfigureFlags

So for php5 add --with-ldap to

/var/cpanel/easy/apache/rawopts/all_php5

Then re-run easyapache as normal, and it will silent pick up the change and compile ldap in to PHP