Hola:
Instale Moodle en local y actualicé a la version 3.4. Creé curso y todo perfecto. Ahora estoy intentando subirlo a la web y siempre me sale este mensaje.
Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.
Tengo una página web del centro escolar con el siguiente dominio:
He creado un subdominio para alojar moodle
Las 2 carpetas (moodledat y moodle) las he puesto en la ríz del sitio web.
He modificado varias veces el archivo config.php y siempre me da el mismo error.
Ahora mismo lo tengo configurado así:
<?php // Moodle configuration file
unset($CFG);
global $CFG;
$CFG = new stdClass();
$CFG->dbtype = 'mariadb';
$CFG->dblibrary = 'native';
$CFG->dbhost = 'mukusulubalhi.net.mysql';
$CFG->dbname = 'mukusulubalhi_n';
$CFG->dbuser = 'mukusulubalhi_n';
$CFG->dbpass = 'UMmedUhr';
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbport' => '',
'dbsocket' => '',
'dbcollation' => 'utf8mb4_unicode_ci',
);
$CFG->wwwroot = 'http://www.mukusulubalhi.net/moodle';
$CFG->dirroot = 'http://www.mukusulubalhi.net/moodle';
$CFG->dataroot = 'http://www.mukusulubalhi.net/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 problems!
¿Que estoy haciendo mal?
Adjunto el archivo config.php
Gracias de antemano a cualquier ayuda que pueda recibir
Jose Luis Fernández