I'm a moodle newbie, and installed Moodle 1.5.2 on Windows 2003 using Easy PHP from. The install worked well, and I was able to log on. I went to switch the authentication method to, and received the following message: Warning: The PHP LDAP module does not seem to be present. Please ensure it is installed and enabled. I uncommented extension=php_ldap.dll in the php.ini file in c: program files easyphp1-7 apache, thinking that would solve the problem. I also specified the extensions directory c: program files easyphp1-7 php extentions.
Now when I start easy.php, I recieve a Windows dialog box that says apache.exe - unable to locate component. The message is 'This application has failed to start because SSLEAY32.dll was not found. Re-installing the application may fix this problem.'
I am not sure if this is the best place to post this or not but I have a question regarding enabling the LDAP extension for PHP. I have installed PHP 5.3.24 using the Web Platform Installer on a Windows 2012 Standard server.
Then I get a second dialog box that says 'Unknown(): Unload to load dynamic library 'C: Program Files EasyPHP1-7 php extensions php_ldap.dll' - The specified module could not be found.' I still cannot get LDAP working: I have a Windows XP 'test' machine setup using the pre-packaged Moodle Windows installation. Like most everyone else, it installs fine and I can logon with manual accouts. I NEED to get LDAP auth to work.
I have tried ALL the suggestions in this post. I still get: ' Warning: The PHP LDAP module does not seem to be present.
Please ensure it is installed and enabled' php -m and phpinfo both report the ldap module(s) as being installed. I installed Moodle on a test XP machine for speed of install. This is not the platform I intent to use for production.if I get that far. Any additional suggestions would be greatly appreciated! Having had the same troubles as many of the others in this thread, I wanted to let you know how I solved the PHP ldap module problem. I am running Windows 2003 and am using the Windows Moodle Quick Installer 1.
I had to put the php path in my environment path variable in windows 2003. To check to see if yours works before beginning, do start, run, cmd and enter Type php -m, you should see output, if not you need to set the path To see what your path currently is, type path and hit enter To set the path on Windows 2003, go to the control panel and click on System. Then click on the advanced tab and you should see at the bottom a button for environment variables, click that. You now have a box where you can edit several things including your path. (Keep in mind that if you use%SystemRoot% in you php path that it does NOT point to c:, instead to c: Windows ) 2.
I had to alter the PHP.ini file. Interestingly enough, I kept thinking I had done this. It turns out that at least on my system, I have two php.ini files and one php5.ini. To find out which one your system is actually using, login to moodle as the administrator, go to the admin page and at the very bottom press the php Info button. About the seventh line down you should see something like this: Configuration File (php.ini) Path C: moodle apache bin php.ini Open and edit that file and remove the semicolon (;) in front of the line: extension=php_ldap.dll 3. After these two things restart apache and you should no longer receive the red error message. Scott's reply helped me solve my problem.
Anyone else reading this, make sure you are editing the correct PHP.ini.! Using Scott's method (Log into moodle as Admin, go to Admin page, click 'PHP Info' button, few lines down it gives location of configuration file) I realised that of the three I had been editing, none of them was correct. If you use the Moodle full install (PHP/Apache/My) the php.ini you need is in%moodle%/apache/bin/php.ini (where%moodle% is where you've installed moodle to., Peter. Hey all, Let me start by saying that Im a complete newbie at moodle and LDAP (havent even heard of them before 2 weeks ago). Anyway, Im getting the same problem as above ' Warning: The PHP LDAP module does not seem to be present. Please ensure it is installed and enabled.' And if I then try to log on as one of the users I get ' Fatal error: Call to undefined function: ldap_connect() in /var/www/moodle/auth/ldap/lib.php on line 1298' (i take it that error pops up because of the warning in red).