Trying to get Moodle on server: Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.

Asked by:
mexlobo / 5 Points
2012-06-30 6:52 pm EST
Using xampp, filezilla,

Looks like im almost in the last of the steps, but i get this

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

Ive tried everything in config.php and nothing is working...

Is there a way to give someone access so they can fix it?

59 seconds agoEugenio Lobo
dbtype = 'mysqli';
$CFG->dblibrary = 'native';
$CFG->dbhost = '';
$CFG->dbname = '******_moodle1';
$CFG->dbuser = '******';
$CFG->dbpass = '*****;
$CFG->prefix = 'mdl_';
$CFG->dboptions = array (
'dbpersist' => 0,
'dbsocket' => 0,

$CFG->wwwroot = '';
$CFG->dirroot = '/home/vol6/';
$CFG->dataroot = '/home/vol6//b7_10900438/public_html/moodledata';
$CFG->admin = 'admin';

$CFG->directorypermissions = 0777;

$CFG->passwordsaltmain = 'O-Ovjp[Sr+Xnb,Y`C R(^Hl78*I';

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

// There is no php closing tag in this file,
// it is intentional because it prevents trailing whitespace problems!

To ask this user for more information, please first login.

To submit an answer, please login.



16,260 Points
2012-07-02 10:27 am EST
Hello mexlobo,

The dataroot path may be incorrect or have the wrong permissions. I cannot tell for sure as I cannot locate an account for you on our servers. If I could, I would be able to check the exact path.

On our servers, 777 permissions can sometimes create errors due to server security. If you are certain that dataroot path is correct, then I would try a 755 permission setting if you are still getting the errors.

I hope this answers your question. If you have any more questions or information specific to the issue please leave a comment below so we can further assist you.

Best Regards,
Scott M

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.