jordonshaw Posted January 22, 2010 Share Posted January 22, 2010 Ok, so at this point, I'm about to pull my hair out (and I don't have much). So, I need to enable LDAP in my PHP install. So, everything works perfectlly in PHP and has been for a while now. All other extension that I have uncommented in the PHP.INI file, load fine. I uncommented the php_ldap.dll in the PHP.INI file and it didn't load. So, I did some research and found an article that you need to copy the lebeay32.dll and the ssleay32.dll from your PHP directory into your system32 and windows directory, which I did. Still will not load the php_ldap.dll. I have restarted IIS many times, I have restarted the machine, many times. Still nothing. I run this command: echo extension_loaded('ldap') ? 'Loaded ' : 'NOT Loaded '; and this one: print_r(get_loaded_extensions()); The first one comes back Not Loaded and the second one shows everything that I have loaded and ldap isn't one of them. I'm lost at this time and could really, really use some help here! :banghead: Thanks, Jordon Quote Link to comment Share on other sites More sharing options...
jordonshaw Posted January 22, 2010 Author Share Posted January 22, 2010 I turned on start up errors and I get the following message about LDAP: PHP Startup: ldap: Unable to initialize module Module complied with module API=20060613, debug=0, thread-safety=1 PHP complied with module API=20060613, debug=0, thread-safety=0 These options need to match So, now my question is, does anybody know how to make those match? Thanks, Jordon Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted January 22, 2010 Share Posted January 22, 2010 By using the php_ldap.dll, libeay32.dll and ssleay32.dll that came with your build of php. What method did you use to install php originally? The msi installer? The zip package? Some WAMP all in one package? Quote Link to comment Share on other sites More sharing options...
jordonshaw Posted January 22, 2010 Author Share Posted January 22, 2010 To be perfectly honest, I don't remember how I installed it. I do know that two days ago, I used Microsoft Web Platform to upgrade to the latest version. I do think that I used that to begin with, but just can't remember. I did download the same version of the zip files from php.net and then I copied the new version of the .dll files that you mentioned and still a no go. Any additional suggestions? Quote Link to comment Share on other sites More sharing options...
jordonshaw Posted January 22, 2010 Author Share Posted January 22, 2010 Ok, so I went ahead and uninstalled PHP and then reinstalled it. All the dll's are where they should be and now I'm getting a statup message that says: "PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\ext\php_ldap.dll' - The specified module could not be found" The problem is, I know that the dll is there. Any suggestions? Jordon Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted January 22, 2010 Share Posted January 22, 2010 That error message (unfortunately) also occurs when the auxiliary libeay32.dll and ssleay32.dll files are not in a folder that is in the Windows PATH statement. Quote Link to comment Share on other sites More sharing options...
jordonshaw Posted January 22, 2010 Author Share Posted January 22, 2010 Those two .dlls are in the php directory, they are in the windows directory and they are in the system32 directory. Do they need to be somewhere else? Quote Link to comment Share on other sites More sharing options...
jordonshaw Posted January 22, 2010 Author Share Posted January 22, 2010 I've also verified that the c:\program files\php is in the windows path variable. Quote Link to comment Share on other sites More sharing options...
jordonshaw Posted January 22, 2010 Author Share Posted January 22, 2010 Ok, so I just looked and there were several .dll files that was in the .zip download, but not in my php directory. I copied them and now it loads the php_ldap.dll; however, I'm now back to the same message of the module and php are complied with different options, like before. I can't win for losing!!! Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted January 22, 2010 Share Posted January 22, 2010 There are two branches of the Windows binary files, VC6 and VC9. VC9 should be the correct one for IIS. There is a chance that the Microsoft Web Platform is doing the same (dumb) stuff that the php .msi installer does (perhaps it is using the .msi installer package internally.) If this is the case, you are expected to add/remove php language extensions by going through the control panel add/remove menu item for php, because it turns out they are storing settings in the Windows registry that override the php settings that you are attempting to alter. Quote Link to comment Share on other sites More sharing options...
jordonshaw Posted January 22, 2010 Author Share Posted January 22, 2010 My prayers have been answered!!! I went back to php.net/downloads.php and this time I downloaded the non-thread-safe-zip-package and took the php_ldap.dll file out of it, replaced the one that I had, restarted IIS and it finally loaded without error! Thank you so much for your help! Jordon Quote Link to comment 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.