Windows Thread, PHP and LDAP on IIS in Technical; I'm trying to set up a new server for Moodle. It's running Windows 2003 x64 and I've got IIS and ...
-
30th October 2007, 07:58 PM #1 PHP and LDAP on IIS
I'm trying to set up a new server for Moodle. It's running Windows 2003 x64 and I've got IIS and PHP installed and sort of working.
The "sort of" is because LDAP doesn't work and so Moodle won't work for us either.
I've uncommented the LDAP extension in php.ini but if I create a test page which tries to do an LDAP search I get:
"Call to undefined function ldap_connect() "
in the browser. A page with phpinfo() in it shows that LDAP is not loading.
BUT (and this is where it gets weird!) if I go to a command prompt and type:
php c:\inetpub\wwwroot\test.php
it runs fine - I see the HTML I'd expect and it returns a set of results from the LDAP search. This seems to suggest that PHP.INI is right (otherwise how could php.exe load the LDAP module) so why can't the PHPISAPI dll load it? I know it's reading PHP.INI from c:\php - things like MySQL support are being loaded OK
Are there any PHP experts who have seen this problem? Googling just gives loads of stuff about what to do when you've not got the right line in PHP.INI but I'm pretty sure that's not my problem!
-
-
IDG Tech News
-
30th October 2007, 08:18 PM #2 Re: PHP and LDAP on IIS
what i found was even if the php addons were listed in php.ini they did not load
check with php info that they are loaded
in the end i had to put all my php addons in windows\system32 to get them to load
-
-
31st October 2007, 09:05 AM #3 Re: PHP and LDAP on IIS
Thanks.
Some addons aren't listed in phpinfo even though they are obviously loading as defined in php.ini (if I take the "ldap" line out of the ini file then running the script at the command prompt falls over)
I had tried putting all the files in system32; this shouldn't be necessary if the php folder is on the path (it is!) - IIS should read the php.ini file (it does!) and then know that the extensions are in c:\php\ext.
I've got a feeling that this is something to do with it being x64 Windows but I can't really pin it down. There are quite a few messages on forums elsewhere about this but no real solutions. The PHP authors just say it's not a bug in PHP; it's just you not using it properly which doesn't really help :-)
-
SHARE: 
Similar Threads
-
By bonjour in forum Network and Classroom Management
Replies: 11
Last Post: 8th October 2009, 08:23 AM
-
By brubakes in forum Educational Software
Replies: 0
Last Post: 3rd January 2008, 08:55 PM
-
Replies: 2
Last Post: 14th September 2007, 09:20 AM
-
By browolf in forum Web Development
Replies: 11
Last Post: 8th May 2007, 09:33 AM
-
By GrumbleDook in forum Virtual Learning Platforms
Replies: 10
Last Post: 28th March 2007, 04:02 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules