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.

openLDAP and php in easyapache - Centos 5 [ SOLUTION ]

Discussion in 'EasyApache' started by forlinuxsupport, Jul 30, 2008.

  1. forlinuxsupport

    forlinuxsupport Well-Known Member
    PartnerNOC

    Joined:
    Dec 22, 2004
    Messages:
    386
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    Root Administrator
    Hi

    I needed to installed Openldap support in easyapache so this is how I did it.
    (I pulled all the info from other cpanel threads and have listed it here in one go. )

    First we need to 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

    if you are using php5, add the following in /var/cpanel/easy/apache/rawopts/all_php5
    --with-ldap=/usr

    See this page for more info http://www.cpanel.net/support/docs/ea/ea3/ea3custom_flags.html - see that page for php4 support

    then run ./scripts/easyapache

    It will then build apache / php and include ldap support for php.

    Create a phpinfo page and you will see ldap listed there now.

    I cant take any of the credit for this, I have just placed it all together in this thread.

    Regards
    Andy
     
    #1 forlinuxsupport, Jul 30, 2008
    Last edited: Jul 30, 2008
  2. Eric

    Eric Administrator
    Staff Member

    Joined:
    Nov 25, 2007
    Messages:
    746
    Likes Received:
    11
    Trophy Points:
    18
    Location:
    Texas
    cPanel Access Level:
    Root Administrator
    Howdy,

    I was testing this out to recommend it. I would install the rpms via yum like this:

    yum -y install openldap openldap-servers openldap-devel

    and you can skip the easyapache interface using:

    /scripts/easyapache --build

    to get to the ah a little quicker.

    Thanks!
     
Loading...

Share This Page