By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,722 Members | 1,249 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,722 IT Pros & Developers. It's quick & easy.

ldap module problem

100+
P: 107
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:

Expand|Select|Wrap|Line Numbers
  1. Fatal error: Call to undefined function ldap_connect() in C:\blah blah blah

I've uncommented the "extension=php_ldap.dll" line in php.ini, php5.ini and in the php4 directory in php.ini and php4.ini

I've added c:\xampp\php to PATH environmental variable and php -m now works from anywhere and says that the ldap module is loaded.

I've copied 2 files "ssleay32.dll" and "libeay32.dll" to the system32 directory as read in another post

But i still get the same error!!!! and cant use the ldap functions


Im begining to lose the will to live!

Does anyone have any idea's whats wrong? What else I can try or how I can debug the problem?


Thanks


Andy
Aug 7 '08 #1
Share this Question
Share on Google+
2 Replies


Atli
Expert 5K+
P: 5,058
Have you tried restarting the Apache server?
You may even have to reboot Windows if you are messing around with system variables and DLL's.
Aug 7 '08 #2

100+
P: 107
ok thanks, just sorted this.


Apparently it doesnt use the settings from the php folder.... why would it?!

there was another php.ini in the apache directory where i needed to uncomment the module.... even though it did already say it had it loaded.


pah!

Andy
Aug 8 '08 #3

Post your reply

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