Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    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
     
  2. pzodiaco

    pzodiaco Member

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice