Virtual Learning Platforms Thread, Moodle LDAP Auth in Technical; Hi,
I am now using Apache for Moodle isntead of IIS7.
i am trying to get LDAP up and running ...
8th April 2009, 02:31 PM #1
Moodle LDAP Auth
I am now using Apache for Moodle isntead of IIS7.
i am trying to get LDAP up and running but i am hit with this error message
"Cannot use LDAP Authentication. The PHP LDAP module is not installed"
I have gone into the php.ini file and taken the colon and put the .dll file in the right place and i still get the message.
These are the details
Active Directory Server - Windows Server 2008
Moodle Server - Windows Server 2008
Using Xampp Package
there are some beers in this for people
8th April 2009, 02:35 PM #2
This is from the Moodle Docs pages on LDAP setup with Windows.
Warning: The PHP LDAP module does not seem to be present. Please ensure it is installed and enabled.
This usually means that the main ldap dll or one of the supporting dlls are missing. Let's start with the main one itself. Browse to http://(moodleserver)/admin/phpinfo.php
and examine the "Configuration File (php.ini) Path" field to determine which php.ini is being used and open it with an editor. Find the line 'extension=php_ldap.dll' and take out the semi-colon if it is there. That semi-colon will stop it loading the module all together! While you have that file open, search for 'extension_dir' and note which folder it is set to. Open that folder and ensure the php_ldap.dll file is in there. If it isn't then put it in there. If that still hasn't fixed it you are missing a supporting dll, but you don't get told that. To see what dlls are missing open the Command Prompt and navigate to the php directory and execute the following line 'php -m'. You should get some error messages now. Ugly, but at least they give you information! Find the dlls listed and copy them to the php directory. You may now need to restart the apache/httpd service. Run 'php -m' again and you should be error free and the message in Moodle should be gone now.
Last edited by Jamo; 8th April 2009 at 02:36 PM.
Reason: wrong quote tags!!
8th April 2009, 02:37 PM #3
Done that and i still get an error
I tell a lie.... The CLI tool is crashing in server 2008 so can't see what is says.
8th April 2009, 02:59 PM #4
Would this be enterprise server 2008 or standard?
8th April 2009, 03:02 PM #5
8th April 2009, 03:08 PM #6
Seems like a total waste of money for just a moodle install couldn't you just install Ubuntu on another box and then use the LDAP authentication as i have said in another post or do you just want to see it running on a windows server 2008?
Is this for a real installation or just to see if you can?
How much does an enterprise server 2008 license cost these days?
For the cost of the server license you could have bought another server and had it running by now.
8th April 2009, 03:10 PM #7
As i said before on the other post i have no input at all as to where it sits.
Please can we focus onto the matter in hand.
8th April 2009, 03:19 PM #8
Im guessing you have run the php -m command (i guess thats where the cli is crashing?)
8th April 2009, 03:20 PM #9
yes so it doesn't finsih off.
Originally Posted by Jamo
8th April 2009, 03:23 PM #10
not sure if its possible but have you tried an alternative like powershell to see if it will let it run?
8th April 2009, 03:31 PM #11
Lets focus together on this then ok:
Is it 32 or 64 bit windows?
have you fully installed WAMP onto the windows 2008 server PHP Apache MySQL avec WampServer 2 : installation PHP MySQL Apache.
Have you checked to see if apache is running?
Do you have any other error messages?
Have you made a php in notepad php.info with php tags and then browsed to the file to check everything is in order?
Or have you already done this?
8th April 2009, 03:43 PM #12
Ok its 64 bit
I have already got it up and running using xampp. I habe left everything in the PHP by default apart from the above changes.
8th April 2009, 03:45 PM #13
Did you restart the services after you enabled the DLL extension?
8th April 2009, 03:47 PM #14
Having had to fix quite a few XAMP installs, I strongly recommend avoiding it (except maybe for pure testing enviroments) and doing a normal PHP, MySQL, Apache (or IIS) installation. This may take a little longer to get up and running, but is well worth a bit of pain up front to save more problems in the furture.
Sorry but can't help with the authentication bit, that's one of the reasons for us moving from XAMP to IIS, it works much more easily there!
8th April 2009, 03:48 PM #15
By IT_Man_Dan in forum Virtual Learning Platforms
Last Post: 2nd April 2009, 10:07 AM
By ahunter in forum Virtual Learning Platforms
Last Post: 31st October 2008, 12:12 PM
By zag in forum Virtual Learning Platforms
Last Post: 17th July 2008, 11:12 AM
By FN-GM in forum Virtual Learning Platforms
Last Post: 25th May 2008, 12:58 PM
By GrumbleDook in forum Virtual Learning Platforms
Last Post: 28th March 2007, 05:02 PM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)