Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

share|improve this question

migrated from Apr 27 '13 at 12:44

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

up vote 6 down vote accepted

Found the problem.

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

Need to be in C:/Windows/system

share|improve this answer
I think the real problem here is that you are missing c:\xampp\php in your systems PATH variable, but of course the problem also goes away when you copy the missing DLLs to a folder that is actually inside your PATH. – s1lv3r Apr 1 '15 at 11:18

Your Answer


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.