FN-GM Posted April 8, 2009 Posted April 8, 2009 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
Jamo Posted April 8, 2009 Posted April 8, 2009 (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 April 8, 2009 by Jamo wrong quote tags!!
FN-GM Posted April 8, 2009 Author Posted April 8, 2009 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.
bossman Posted April 8, 2009 Posted April 8, 2009 @FN-GM: Would this be enterprise server 2008 or standard?
bossman Posted April 8, 2009 Posted April 8, 2009 @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. ;)
FN-GM Posted April 8, 2009 Author Posted April 8, 2009 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
Jamo Posted April 8, 2009 Posted April 8, 2009 Im guessing you have run the php -m command (i guess thats where the cli is crashing?)
FN-GM Posted April 8, 2009 Author Posted April 8, 2009 Im guessing you have run the php -m command (i guess thats where the cli is crashing?) yes so it doesn't finsih off.
Jamo Posted April 8, 2009 Posted April 8, 2009 not sure if its possible but have you tried an alternative like powershell to see if it will let it run?
bossman Posted April 8, 2009 Posted April 8, 2009 @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? :)
FN-GM Posted April 8, 2009 Author Posted April 8, 2009 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
webman Posted April 8, 2009 Posted April 8, 2009 Did you restart the services after you enabled the DLL extension?
tonyd Posted April 8, 2009 Posted April 8, 2009 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!
bossman Posted April 8, 2009 Posted April 8, 2009 @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. :)
FN-GM Posted April 8, 2009 Author Posted April 8, 2009 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
FN-GM Posted April 8, 2009 Author Posted April 8, 2009 I have just installed Wamp on my laptop, how do i set passwords to secure phpmyadmin? Thanks z
webman Posted April 8, 2009 Posted April 8, 2009 Have you tried setting a password for the root MySQL user?
FN-GM Posted April 8, 2009 Author Posted April 8, 2009 Yes but i get access denied when i go into PHPmyadmin
webman Posted April 8, 2009 Posted April 8, 2009 Did you update the username/password in c:\wamp\apps\phpmyadmin*\config.inc.php?
powdarrmonkey Posted April 8, 2009 Posted April 8, 2009 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.
FN-GM Posted April 8, 2009 Author Posted April 8, 2009 Yes but then it lets me right in again so i haven't gained anything. Z
mac_shinobi Posted April 8, 2009 Posted April 8, 2009 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 )
bossman Posted April 8, 2009 Posted April 8, 2009 (edited) @FN-GM: Could this be what you are looking for? JLBN - Password Protection on WAMP :) Also here is another link to be going on with:WAMP + Tutorial - SWiK :) Edited April 8, 2009 by bossman
webman Posted April 8, 2009 Posted April 8, 2009 See above by powdarrmonkey then. I don't use WAMP in a production environment (nor phpMyAdmin for that matter).
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now