Jump to content

[SOLVED] php_ldap.dll on IIS (Windows Server 2003)


wellscam

Recommended Posts

I am trying to get the ldap extension loaded on my server. I have uncommented the extension in the php.ini file. I have made sure there are no other php.ini files floating around and that the extension is in the correct directory. I have also then restarted the IIS Service and it still will not load. I can uncoment out other extensions and they load fine, but the ldap just will not work...any ideas?

 

PHP Version 5.2.4

System  Windows NT SERVERNAME 5.2 build 3790 

Build Date  Aug 30 2007 07:05:48 

Configure Command  cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared" 

Server API  ISAPI 

Virtual Directory Support  enabled 

Configuration File (php.ini) Path  C:\WINDOWS 

Loaded Configuration File  C:\WINDOWS\php.ini 

Here is the fix. The PHP manual says:

 

Note to Win32 Users: In order to enable this module on a Windows environment, you must copy several files from the DLL folder of the PHP/Win32 binary package to the SYSTEM folder of your windows machine. (Ex: C:\WINNT\SYSTEM32, or C:\WINDOWS\SYSTEM). For PHP <= 4.2.0 copy libsasl.dll, for PHP >= 4.3.0 copy libeay32.dll and ssleay32.dll to your SYSTEM folder.

 

It says nothing about 5.X which is what I am using so I didn't do this, but I HAD to do this to get it working!!

 

I did not have the libsasl.dll as shown on 4.2.0, but I had the libeay32.dll and the ssleay32.dll and I copied those to system32 and restarted the IIS service, not the server itself and everything is just fine now!!

  • 1 month later...

1. Install PHP using the installer on Windows machine (running IIS) - Install PHP to C:\PHP

 

2. Add PHP Directory to Windows Path -- instructions on php.net http://us.php.net/manual/en/faq.installation.php#faq.installation.addtopath

 

from php.net: Although copying DLL files from the PHP folder into the Windows system directory also works (because the system directory is by default in the system's PATH), this is not recommended.

 

3. Now download the Windows Binaries ZIP Package from php.net -- http://us.php.net/downloads.php

 

4. Extract and overwrite all files in C:\PHP -- Do this to get all extension files and other files necessary for IIS to work with PHP

 

5. Open php.ini and uncomment the ldap extension

 

6. Restart computer -- everything should work

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.