WAMP & LDAP Extension

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • superzumo
    New Member
    • Jan 2012
    • 1

    WAMP & LDAP Extension

    Does anyone have a How To guide on installing the LDAP extension on WAMP ?

    I am trying to install it on a Windows XP Pro SP3 Machine solely as a proof of concept.

    I was told to use this link:
    http://www.php.net/manual/en/ldap.installati on.php

    The ldap section is here:

    http://www.php.net/manual/en/ldap.installati on.php

    Here is the part that I really dont understand how and when to do :

    "You will need to use the --with-ldap[=DIR] configuration option when compiling PHP to enable LDAP support."

    Other than that here are the steps that I have taken:

    1) I added this in the Environment Variables :

    %SystemRoot%\sy stem32;%SystemR oot%;%SystemRoo t%\System32\Wbe m;C:\wamp\bin\p hp\php5.3.8;C:\ wamp\bin\php\ph p5.3.8\ext


    The last addition was made after it didn't work with the adition before that.

    2)I edited the php.ini file to activate the php_ldap.dll extension and I set my extenion_dir= to c;\wamp\bin\php \php5.3.8.

    Now I also notice that there is a separate php.ini file that is located in the wamp\php folder. Was this the ini file i was suppose to edit ?

    3) I copied libeay32.dll and ssleay32.dll to the windows\system3 2 folder

    Now i get some funky dyanmic library is unable to laod php_ldap.dll

    I feel like throwing my computer off a cliff and burning it.

    Can anyone push me in the right direction here ?

    Any help would be appreciated!
  • dlite922
    Recognized Expert Top Contributor
    • Dec 2007
    • 1586

    #2
    Code:
    "You will need to use the --with-ldap[=DIR] configuration option when compiling PHP to enable LDAP support."
    That's usually for Linux not Windows users to compile PHP (yes as in taking the source code and compiling the PHP software)

    With windows it should be enough to include the library.

    Track down your error message and you'll solve this. Remember to start Apache every time you make a change to PHP. Also not everything needs to be in C:\Windows\Syst em32. you can just add the PHP installation directory to your PATH variable (Right Click My Computer > Properties > Advanced system settings > Environment Variables, scroll down to path and click edit. add a semicolon at the end and add the dir where php is installed)

    Hope you get it done,


    Dan

    Comment

    Working...