srayner Posted December 21, 2011 Share Posted December 21, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/253595-ldap-module-wont-load-on-php53-windows/ Share on other sites More sharing options...
sunfighter Posted December 21, 2011 Share Posted December 21, 2011 did you check your ini file and look for ;extension=php_ldap.dll ? This one is disabled. Is yours? Quote Link to comment https://forums.phpfreaks.com/topic/253595-ldap-module-wont-load-on-php53-windows/#findComment-1300200 Share on other sites More sharing options...
srayner Posted December 22, 2011 Author Share Posted December 22, 2011 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. Quote Link to comment https://forums.phpfreaks.com/topic/253595-ldap-module-wont-load-on-php53-windows/#findComment-1300536 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.