Forums | Mahara Community
Support
/
Installation help - MySQL Database!
13 December 2016, 9:19
Hello users,
I am trying to install Mahara at hacktropy.com for the last several days but no luck. I think I have a correct files/folders permission, created a folder above public_html for storage, and also properly renamed and updated config.php file with all the database parameters of MySQL. I also have a proper permission for the user for the database, and I can connect to the database via command line. I am using CPanel. I ensured UTF-8 and also correct php.ini settings. Pretty much followed through everything from,
System_Administrator's_Guide/Installing_Mahara#Adjust_your_PHP_settings
youtube.com/watch?v=5jAZKBvl_yM
but no luck. Any idea what I could be doing wrong? Thanks for your help!
13 December 2016, 11:57
Hi Arif Siddiqi
I am sorry to hear you are having problems installing Mahara.
Can you tell me a bit more about the problems you are having.
What version of Mahara are you trying to install?
Are you able to paste in here what errors you got? Or do a screenshot of the problem you are having?
Cheers
Robert
13 December 2016, 12:55
Hi Robert,
Thanks for your reply. I am using the latest version, 16.10, and here is the error I am receiving,
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Mahara: Site unavailable
* If you are using Mahara, please wait a minute and try again
* If you are the administrator, please check your database settings and make sure your database is available
The error received was:
Missing file: /home/hacktropy/public_html/lib/adodb/drivers/adodb-mysql.inc.php<br>
Appreciate if you can provide some insight on this - thanks!
14 December 2016, 12:42
Ok the error you are getting mentions a missing file:
/home/hacktropy/public_html/lib/adodb/drivers/adodb-mysql.inc.php
This file was removed from Mahara as we use the adodb-mysqli.inc.php instead now.
Saying that in the init.php file we have
if (is_mysql()) {
// If they have mysqli, use it. Otherwise, fall back to the older "mysql" extension.
if (extension_loaded('mysqli')) {
$CFG->dbtype = 'mysqli';
}
else {
$CFG->dbtype = 'mysql';
}
}
But actually one can't fall back to 'mysql' now - that is bug which needs fixing - but to get your site to work you'll need to add/enable the PHP extension 'mysqli' on the server
Cheers
Robert
14 December 2016, 16:46
Thanks a ton! Now my site is up and running, and I will sure play with it.