Compile PHP 5 with LDAP support in Cpanel / Centos 5

Cpanel Add comments

Install the openldap rpms

WHM>Software>Install RPM
- installed openldap
- installed openldap-servers
- installed openldap-devel - if it is not installed, you’ll get “Cannot find ldap.h” error while recompiling - this also needs cyrus-sasl-devel installed
(If cyrus-sasl-devel won’t install - find your existing version and download it from the centos mirror
- installed openldap-clients - for working from command line
Recompile Apache

if you are using php5, add the following in /var/cpanel/easy/apache/rawopts/all_php5

–with-ldap=/usr

Then run /scripts/easyapache

After compilation run php -m to check that ldap support is added.




Leave a Reply

Wordpress Themes by Natty WP. Web Hosting
Images by our golf tips desEXign.