Jump to content

Recommended Posts

Posted

Hi,

 

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 :)

 

Thanks

 

Z

Posted (edited)

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.

Edited by Jamo
wrong quote tags!!
Posted

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.

Posted

@FN-GM:

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. ;) ;) :)

Posted

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.

 

thanks

Posted
Im guessing you have run the php -m command (i guess thats where the cli is crashing?)

 

yes so it doesn't finsih off.

Posted

@FN-GM:

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? ;) :) :)

Posted

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.

 

Thanks

 

Z

Posted

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!

Posted

@FN-GM:

 

I would start again using WAMP at least you would know the info below was right as I think this could be your problem.

 

WARNING : all the PHP releases aren't compatible with the Apache releases. WampServer knows which releases can work together and lets you know when it is not possible to switch. ;) :) :)

Posted
Did you restart the services after you enabled the DLL extension?

 

Yep

 

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!

 

Im no expert at doing it to be honest i have tried a couple of times and failed.

 

thanks

 

Z

Posted
how do i set passwords to secure phpmyadmin?

 

Edit phpMyAdmin's config.inc.php and set $cfgServers[$i]['auth_type'] to 'cookie'.

 

You should also make sure you set a root password on your mysql server.

Posted

doesn't it give you a default admin username and password ( in the read me file of phpmyadmin )

 

have not done it for a long time so appologies if its wrong info.

 

Then once you have that default username and password you can alter / add / change other users etc

 

That or it asks you to create an admin account to start with ( cant remember as memorys a bit fuzzy )

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...