wellscam Posted July 18, 2008 Share Posted July 18, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/115455-solved-php_ldapdll-on-iis-windows-server-2003/ Share on other sites More sharing options...
ag3nt42 Posted July 18, 2008 Share Posted July 18, 2008 i've never used this but.. this may help.. http://us.php.net/manual/en/ldap.setup.php Quote Link to comment https://forums.phpfreaks.com/topic/115455-solved-php_ldapdll-on-iis-windows-server-2003/#findComment-593525 Share on other sites More sharing options...
wellscam Posted July 18, 2008 Author Share Posted July 18, 2008 User connent on there said exactly what I thought. Using windows, I don't need to compile LDAP services, it should just run. Quote Link to comment https://forums.phpfreaks.com/topic/115455-solved-php_ldapdll-on-iis-windows-server-2003/#findComment-593598 Share on other sites More sharing options...
wellscam Posted July 18, 2008 Author Share Posted July 18, 2008 Anyone else? I would like to get an application integrated with LDAP, but I can't seem to get the extension loaded correctly! Quote Link to comment https://forums.phpfreaks.com/topic/115455-solved-php_ldapdll-on-iis-windows-server-2003/#findComment-593893 Share on other sites More sharing options...
wellscam Posted July 18, 2008 Author Share Posted July 18, 2008 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!! Quote Link to comment https://forums.phpfreaks.com/topic/115455-solved-php_ldapdll-on-iis-windows-server-2003/#findComment-593908 Share on other sites More sharing options...
nabeel21 Posted September 18, 2008 Share Posted September 18, 2008 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 Quote Link to comment https://forums.phpfreaks.com/topic/115455-solved-php_ldapdll-on-iis-windows-server-2003/#findComment-644701 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.