469,287 Members | 2,646 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,287 developers. It's quick & easy.

Problem Enabling Ldap Module on Php

PHP Warning: PHP Startup: Unable to load dynamic library 'c:/www/php/ext/php_ldap.dll' - The specified module could not be found.\r\n in Unknown on line 0

why this is happening?

i have uncomment the extension=php_ldap.dll
and i have copied the libeay32.dll and the ssleay32.dll in my
windows\system32 directory.
my php.ini file is on c:\windows\
my php path c:\www\php\

Any ideas..??? Please Help me.
Apache/2.0.54 (Win32) mod_ssl/2.0.54 OpenSSL/0.9.7 PHP/5.1.6)
Dec 4 '06 #1
12 14509
... i have uncomment the extension=php_ldap.dll
and i have copied the libeay32.dll and the ssleay32.dll in my
windows\system32 directory.
my php.ini file is on c:\windows\
my php path c:\www\php\ ...
The line in PHP.INI needs to be
Expand|Select|Wrap|Line Numbers
  1. extension=libeay32.dll
... and you may want to add ...
Expand|Select|Wrap|Line Numbers
  1. extension=ssleay32.dll
Does that work?

Sean
Dec 4 '06 #2
The line in PHP.INI needs to be
Expand|Select|Wrap|Line Numbers
  1. extension=libeay32.dll
... and you may want to add ...
Expand|Select|Wrap|Line Numbers
  1. extension=ssleay32.dll
Does that work?

Sean
nope i va got that error
PHP Warning: PHP Startup: Unable to load dynamic library 'c:/www/php/ext/php_ldap.dll' - The operating system cannot run %1.\r\n in Unknown on line 0
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library) 'libeay32.dll' in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'c:/www/php/ext/ssleay32.dll' - The operating system cannot run %1.\r\n in Unknown on line 0
Dec 8 '06 #3
do asearch and be sure if the file php_ldap.dll exists or not
it must be on you'r computer
Jun 11 '07 #4
Motoma
3,237 Expert 2GB
How did you install PHP and Apache? Did you install them separately, together, or compile from source?
Jun 11 '07 #5
I am having the same problem. Did you ever resolve this issue?

Thanks,

Jessie
Jan 24 '08 #6
How did you install PHP and Apache? Did you install them separately, together, or compile from source?
I am having the same problem. How did you resolve the issue?

MYINFO
I am trying to enable ldap for PHP on Windows Server 2003 SP 1
I am running PHP5.2.5
I am running Apache 2.2

I have copied and put all of the following files in the extensions directory "ext" or C:\PHP\ext

Files I have copied into ext and windows system32 directory:
php_ldap.dll
php_openssl.dll

I already have the following files in my system32 directory:
msvcr70.dll
msvcr71.dll
ssleay32.dll
libeay32.dll

I know that the system is seeing my extensions directory because when I put:
extension=php_ldap.dll

The error message shows up twice. This is in the Apache2.2 log file.

Unable to load dynamic library 'C:\\PHP\\ext\\php_ldap.dll' - The operating system cannot run %1.\r\n in Unknown on line 0

When I do a php -v, the output is
PHP Warning: Module 'magickwand' already loaded in Unknown on line 0
PHP Warning: Module 'ldap' already loaded in Unknown on line 0
PHP Warning: Module 'openssl' already loaded in Unknown on line 0
PHP 5.2.5 (cli) (built: Nov 8 2007 23:18:51)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

This is strange.

Any suggestions would be appreciated.


Thanks,

Jessie
Jan 24 '08 #7
Did you find a solution to this problem? I'm having the same issue.

caswebber

I am having the same problem. How did you resolve the issue?

MYINFO
I am trying to enable ldap for PHP on Windows Server 2003 SP 1
I am running PHP5.2.5
I am running Apache 2.2

I have copied and put all of the following files in the extensions directory "ext" or C:\PHP\ext

Files I have copied into ext and windows system32 directory:
php_ldap.dll
php_openssl.dll

I already have the following files in my system32 directory:
msvcr70.dll
msvcr71.dll
ssleay32.dll
libeay32.dll

I know that the system is seeing my extensions directory because when I put:
extension=php_ldap.dll

The error message shows up twice. This is in the Apache2.2 log file.

Unable to load dynamic library 'C:\\PHP\\ext\\php_ldap.dll' - The operating system cannot run %1.\r\n in Unknown on line 0

When I do a php -v, the output is
PHP Warning: Module 'magickwand' already loaded in Unknown on line 0
PHP Warning: Module 'ldap' already loaded in Unknown on line 0
PHP Warning: Module 'openssl' already loaded in Unknown on line 0
PHP 5.2.5 (cli) (built: Nov 8 2007 23:18:51)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

This is strange.

Any suggestions would be appreciated.


Thanks,

Jessie
Feb 6 '08 #8
Did you find a solution to this problem? I'm having the same issue.

caswebber
This is what worked for me.

I downloaded the latest version of libeay32.dll. I put that version in my windows system32 directory. I also put it in my php directory "C:\PHP\" I did the same with ssleay32.dll. I moved the old dll to a temp directory just in case the new dll broke something. Basically, I made sure my dlls that had to be in the php directory and the system32 directory were the same version. Vola, it worked.

Make sure you follow of the directions on the php website for file depencies for php_ldap.dll. On the php website for this extension is a thread of emails that will be very helpful. Locate the one that points you to the website with the latest libeay32.dll. That is the dll I am using.

I hope this helps!

jessienjr
Feb 6 '08 #9
Thanks for the quick reply.
I'll try it.
caswebber

This is what worked for me.

I downloaded the latest version of libeay32.dll. I put that version in my windows system32 directory. I also put it in my php directory "C:\PHP\" I did the same with ssleay32.dll. I moved the old dll to a temp directory just in case the new dll broke something. Basically, I made sure my dlls that had to be in the php directory and the system32 directory were the same version. Vola, it worked.

Make sure you follow of the directions on the php website for file depencies for php_ldap.dll. On the php website for this extension is a thread of emails that will be very helpful. Locate the one that points you to the website with the latest libeay32.dll. That is the dll I am using.

I hope this helps!

jessienjr
Feb 6 '08 #10
TOUNSI
7
hi for every body where i can found php_ldap.dll.

thanks
Mar 3 '08 #11
ronverdonk
4,258 Expert 4TB
hi for every body where i can found php_ldap.dll.

thanks
In the ext folder of your PHP libraries.

Ronald
Mar 3 '08 #12
cgallo
1
PHP Version: 5
Apache Version: 2.2
Operating System: Windows 2003 Server

I was trying to set the following in php:
extension php_ldap.dll

And i was getting the following error on the apache error log
ERROR:
Unable to load dynamic library 'c:\\php\\ext\\php_ldap.dll' - The operating system cannot run %1.\r\n in Unknown on line 0

Solution:
--- Added "c:\php\ext" and "c:\php\" to my path.
--- Removed old versions of libeay32.dll and ssleay32.dll (php_ldap.dll depends on them) from system32. See: http://www.corephp.co.uk/archives/36-A-Guide-to-using-PHP-5-Extensions-on-Windows.html
--- Make sure to have latest versions of libeay32.dll and ssleay32.dll
Mar 14 '08 #13

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

reply views Thread by MickBim | last post: by
reply views Thread by heddy Boubaker | last post: by
3 posts views Thread by flit | last post: by
reply views Thread by =?UTF-8?B?TWljaGFlbCBTdHLDtmRlcg==?= | last post: by
reply views Thread by Sells, Fred | last post: by
2 posts views Thread by theS70RM | last post: by
2 posts views Thread by Juan | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.