Jump to content

LDAP module won't load on PHP5.3 (windows)


Recommended Posts

PHP Startup: Unable to load dynamic library 'c:\php\ext\php_ldap.dll' - The specified module could not be found.

 

I get the above error message in the apache error logs when starting apache, also phpinfo does not indicate that LDAP module has been loaded.

I have chaecked the obvious, that the php_ldap.dll does exist in the path shown in the error message. I have also checked that c:\php is in my PATH environmental variable, so the system should be able to access libeay32.dll and ssleay32.dll. Just to make sure I have also tried copying those dll files to the windows system32 folder. However I still get the above error message.

 

Here is the configure command from phpinfo;

 

cscript /nologo configure.js "--enable-snapshot-build" "--disable-isapi" "--enable-debug-pack" "--disable-isapi" "--without-mssql" "--without-pdo-mssql" "--without-pi3web" "--with-pdo-oci=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8=D:\php-sdk\oracle\instantclient10\sdk,shared" "--with-oci8-11g=D:\php-sdk\oracle\instantclient11\sdk,shared" "--enable-object-out-dir=../obj/" "--enable-com-dotnet" "--with-mcrypt=static" "--disable-static-analyze"

 

Because there is nothing in the configure command regarding ldap, does this mean that my copy of PHP was not compiled for LDAP? (I may be on the wrong track). If so, where can I get a copy of PHP5.3 that is compiled for windows with LDAP support.

 

Link to comment
Share on other sites

Yes this line is uncommented (i would not be getting the error log if it wasn't trying to load the module).

 

I have now resolved this by re-installing php using the msi installer. The reason I moved away from the msi installer was because it no longer has the option of including firebird pdo.

 

I have to say that the php developers should really have look at improving the error logs. Stating that a module cannot be found, when it clearly can is not helpful. Also please re-instate firebird pdo in the 5.3 msi installer for windows.

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.