Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have apache with php 5.4 installed on a Windows 7 64bit machine. When I restart Apache I get the following:

PHP Startup: Unable to load dynamic library 
'c:/PHP54/ext\\php_ldap.dll' - %1 is not a valid Win32 application

The file is present but LDAP doesn't work, any idea what I am doing wrong? php.ini has the following settings

[ldap]
; Sets the maximum number of open links or -1 for unlimited.
ldap.max_links = -1

;extension=php_interbase.dll
extension=php_ldap.dll
extension=php_mbstring.dll
share|improve this question

migrated from stackoverflow.com Apr 27 '13 at 12:44

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 3 down vote accepted

Found the problem.

  • libeay32.dll
  • libsasl.dll
  • ssleay32.dll

Need to be in C:/Windows/system

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.