The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How To Install PHP Ldap in Cpanel ?

Discussion in 'General Discussion' started by yongki, Apr 30, 2011.

  1. yongki

    yongki Registered

    Joined:
    Apr 13, 2011
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    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
     
  2. pzodiaco

    pzodiaco Member

    Joined:
    Sep 25, 2006
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    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
     
Loading...

Share This Page