Jump to content

Problems Loading php_ldap.dll


Recommended Posts

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

 

Link to comment
Share on other sites

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?  :shrug:

 

Thanks,

Jordon

 

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!!!

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.