473,372 Members | 1,099 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

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 14893
... 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

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

Similar topics

0
by: MickBim | last post by:
Hi, I'm developping a module in PHP to get the users of a LDAP server and add them in a Postgre database, where normal users are too. I've managed to do this "easily" but now a new problem...
0
by: heddy Boubaker | last post by:
hi, as the subject said I've pb compiling php-4.4.4 and php-5.1.6 with ldap module activated on linux debian sarge (2.6.8-3-686-smp) : - for 4.4.4 I've % /bin/sh /www/src/php-4.4.4/libtool...
3
by: flit | last post by:
Hello All, I am struggling with some ldap files. I am using the csv module to work with this files (I exported the ldap to a csv file). I have this string on a field...
1
by: htperth | last post by:
Hi all, Note that I'm new to LDAP and Active Directory and am writing an application that retrieves a simple phone list for all the users in our domain. So far I have the following console app...
1
by: htperth | last post by:
Hi all, Note that I'm new to LDAP and Active Directory and am writing an application that retrieves a simple phone list for all the users in our domain. So far I have the following console app...
0
by: =?UTF-8?B?TWljaGFlbCBTdHLDtmRlcg==?= | last post by:
David Hláčik wrote: Since I don't see anything related to python-ldap please don't follow-up on python-ldap-dev mailing list (removed it from Cc:). Thank you. If there's an exception raised...
0
by: Sells, Fred | last post by:
I'm running python 2.5 (or 2.4) in an XP environment. I downloaded and installed the .dll's from OpenLDAP-2.4.8+OpenSSL-0.9.8g-Win32.zip and copied the .dll's in c:/windows/system32 as instructed...
2
by: theS70RM | last post by:
Hi, Im running Apache 2, PHP5 and mysql from an install of Apache Friends on a Windows XP machine. Im trying to use the ldap functions but getting the following error: Fatal error: Call to...
2
by: Juan | last post by:
Hi I am trying to make a simple Python script using LDAP. The module is imported OK, but when I call the function open or initialize, I get this error: Traceback (most recent call last):...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.