Click to See Complete Forum and Search --> : PHP & OpenLDAP install on Win98


Anon
05-14-2001, 01:25 PM
I have installed Apache 1.3.19, PHP 4.0.5 and OpenLDAP 2.0.7 (Windows port from http://www.fivesight.com/downloads/openldap.asp ) on top of Win98SE.

BTW, I'm still testing OpenLDAP but Apache and PHP definitely work when LDAP support is not enabled.

After enabling ldap support in PHP using the php_ldap.dll extension (with libsasl.dll in the "dlls" dir.) and starting Apache, I get the following error (from the PHP error log):

[15-May-2001 02:56:46] PHP Warning: Unable to load dynamic library 'c:\php\extentions\php_ldap.dll' - One of the library files needed to run this application cannot be found. in Unknown on line 0
[15-May-2001 02:56:48] PHP Warning: Unable to load dynamic library 'c:\php\extentions\php_ldap.dll' - One of the library files needed to run this application cannot be found. in Unknown on line 0

As you can see above, the error occurs twice when starting Apache+PHP.

Has anyone got PHP (using the included php_ldap.dll) and OpenLDAP to work on Windows and if so can you please suggest how I can? :-)

Yours hopefully,
Scrumpy

ame12
05-14-2001, 04:08 PM
Try copying libsasl.dll from the php install directory into c:\windows\system - not sure what it does but I had to do this on my 98 install.

Dave


===========================================
http://badblue.com
Free small footprint web server for Windows
P2P file-sharing, PHP, wireless apps & more
===========================================

Anon
05-15-2001, 04:24 PM
Thanks for the tip but I still had the same problem until I temporarily renamed php_ldap.dll and found that it made NO difference!!

I'd made a stupid syntax mistake in php.ini. After correcting it, the extension now loads without error :)

If you're interested see http://asg.web.cmu.edu/sasl/index.html for info regarding libsasl.

Cheers,
Scrumpy

Anon
03-20-2002, 07:03 PM
Hello,

I got the same problem of "Unable to load dynamic library 'C:\php406\extensions\php_ldap.dll' - the specified module could not be found." for both php_domxml.dll and php_ldap.dll. I am running PHP on Window 2000. How did you fixed your php.ini file?

my php.ini has the following info:
; Directory in which the loadable extensions (modules) reside.
extension_dir = "C:\php406\extensions\"

please help.

Thanks.