Submitted by beat on Fri, 08/07/2009 - 15:36
Is it only me, or has latest virtualmin 3.71 Pro an issue with the Moodle 1.9.5 installer ?`
Tried installing Moodle into 3 different servers (Ubuntu 8.04LTS and Debian Lenny) into the default moodle sub-folder, and on all 3 servers when clicking the link to finish installation I get in red:
Error: Database connection failed.
It is possible that the database is overloaded or otherwise not running properly.
The site administrator should also check that the database details have been correctly specified in config.php
Status:
Active
Comments
Submitted by beat on Fri, 08/07/2009 - 16:32 Comment #1
In server error logs I see:
[warn] mod_fcgid: stderr: ADODB Error:
That's all... no error text...
Submitted by JamieCameron on Sat, 08/08/2009 - 01:31 Comment #2
That's odd, Moodle works fine on my test systems.
And that error from Moodle gives no indication as to what is going wrong :-(
Do the Moodle forums perhaps have any way to find out the cause?
Submitted by beat on Sat, 08/08/2009 - 09:23 Comment #3
Really odd.
By looking at code, I saw there is a mysqli option as well.
I went to config.php of moodle, and changed:
$CFG->dbtype = 'mysql';
to:
$CFG->dbtype = 'mysqli';
then it started working.
So either mysql is broken on all our servers (which is unlikely, since joomla uses it fine), or mysql is broken in moodle or php ADODB....which is unlikely too.
So still no idea why it doesn't work with default mysql... :-(
Submitted by JamieCameron on Sat, 08/08/2009 - 12:06 Comment #4
That is odd, as on my system it works with 'mysql' but not 'mysqli' !