Connecting Tech Pros Worldwide Forums | Help | Site Map

Problem Enabling Ldap Module on Php

Newbie
 
Join Date: Nov 2006
Posts: 25
#1: Dec 4 '06
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)

Newbie
 
Join Date: Dec 2006
Location: West Linn, OR
Posts: 19
#2: Dec 4 '06

re: Problem Enabling Ldap Module on Php


Quote:

Originally Posted by billkirim

... 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
Newbie
 
Join Date: Nov 2006
Posts: 25
#3: Dec 8 '06

re: Problem Enabling Ldap Module on Php


Quote:

Originally Posted by seangates

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
Newbie
 
Join Date: Jun 2007
Posts: 20
#4: Jun 11 '07

re: Problem Enabling Ldap Module on Php


do asearch and be sure if the file php_ldap.dll exists or not
it must be on you'r computer
Motoma's Avatar
Moderator
 
Join Date: Jan 2007
Location: Maine, USA
Posts: 2,904
#5: Jun 11 '07

re: Problem Enabling Ldap Module on Php


How did you install PHP and Apache? Did you install them separately, together, or compile from source?
Newbie
 
Join Date: Jan 2008
Posts: 4
#6: Jan 24 '08

re: Problem Enabling Ldap Module on Php


I am having the same problem. Did you ever resolve this issue?

Thanks,

Jessie
Newbie
 
Join Date: Jan 2008
Posts: 4
#7: Jan 24 '08

re: Problem Enabling Ldap Module on Php


Quote:

Originally Posted by Motoma

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
Newbie
 
Join Date: Feb 2008
Posts: 3
#8: Feb 6 '08

re: Problem Enabling Ldap Module on Php


Did you find a solution to this problem? I'm having the same issue.

caswebber

Quote:

Originally Posted by jessienjr

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

Newbie
 
Join Date: Jan 2008
Posts: 4
#9: Feb 6 '08

re: Problem Enabling Ldap Module on Php


Quote:

Originally Posted by caswebber

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
Newbie
 
Join Date: Feb 2008
Posts: 3
#10: Feb 6 '08

re: Problem Enabling Ldap Module on Php


Thanks for the quick reply.
I'll try it.
caswebber

Quote:

Originally Posted by jessienjr

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

Newbie
 
Join Date: Mar 2008
Posts: 7
#11: Mar 3 '08

re: Problem Enabling Ldap Module on Php


hi for every body where i can found php_ldap.dll.

thanks
ronverdonk's Avatar
Moderator
 
Join Date: Jul 2006
Location: The Netherlands
Posts: 4,139
#12: Mar 3 '08

re: Problem Enabling Ldap Module on Php


Quote:

Originally Posted by TOUNSI

hi for every body where i can found php_ldap.dll.

thanks

In the ext folder of your PHP libraries.

Ronald
Newbie
 
Join Date: Mar 2008
Posts: 1
#13: Mar 14 '08

re: Problem Enabling Ldap Module on Php


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
Reply