+ Post New Thread
Results 1 to 3 of 3
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 ...
  1. #1

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,156
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    124

    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!

  2. #2
    Guest

    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

  3. #3

    Join Date
    Aug 2005
    Location
    London
    Posts
    3,156
    Thank Post
    116
    Thanked 529 Times in 452 Posts
    Blog Entries
    2
    Rep Power
    124

    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:
+ Post New Thread

Similar Threads

  1. Help with MRBS and LDAP
    By bonjour in forum Network and Classroom Management
    Replies: 11
    Last Post: 8th October 2009, 08:23 AM
  2. phpESP and LDAP
    By brubakes in forum Educational Software
    Replies: 0
    Last Post: 3rd January 2008, 08:55 PM
  3. LDAP & SchoolGuardian
    By dave.81 in forum *nix
    Replies: 2
    Last Post: 14th September 2007, 09:20 AM
  4. ldap on php
    By browolf in forum Web Development
    Replies: 11
    Last Post: 8th May 2007, 09:33 AM
  5. Moodle and LDAP
    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
  •