dataroot directory error

dataroot directory error

by Umair Ali -
Number of replies: 1

I have installed 2.9.3. I am getting following error.

 Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting. See below settings

$CFG->wwwroot   = 'http://mysite.com';
$CFG->dataroot  = '/home/vol14_7/example/user/moodledata/';
$CFG->admin     = 'admin';

$CFG->directorypermissions = 0777;

require_once(dirname(__FILE__) . '/lib/setup.php');

I have installed elgg on the same server and elgg also has data directory. No problem. What is the problem with moodle. Installed using softaculous.

Average of ratings: -
In reply to Umair Ali

Re: dataroot directory error

by Simon Rediss-Whitfield -

I would say its obvious, the directory you have set as the data root is incorrect, it seems like a very lengthy address - '/home/vol14_7/example/user/moodledata'