This looks trivial. But I am not able to get past this. It is showing me a error I need to fix.
Wrong $CFG->dbtype. You need to change it in your config.php file from 'mysqli' to 'mariadb'.
I have changed the config.php which is under this directory (/home/moodle/public_html)
It is changed to 'mariadb' but still the same error. Any idea, what is going on? How do I fix this?
<?php // Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = 'mariadb';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'localhost';
$CFG->dbname = 'moodle_dev';
$CFG->dbuser = 'moodle_user';
$CFG->dbpass = 'XXXXX';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => '',
'dbsocket' => '',
'dbcollation' => 'utf8mb4_general_ci',
);
$CFG->wwwroot = 'http://192.168.2.128/moodle';
$CFG->dataroot = '/home/moodle/moodledata';
$CFG->admin = 'admin';
$CFG->directorypermissions = 0777;
require_once(__DIR__ . '/lib/setup.php');
// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problem