error when installing Moodle on DirectAdmin

srahmadi

New member
Joined
May 6, 2012
Messages
3
Hello, I want to install moodle 2.2 on a linux host with DirectAdmin but I get this error: Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.
the address in file manager of host is like: /domains/domain.com/public_html

I used different addresses like: $CFG->dataroot = 'domains/domain.com/moodledata/'
$CFG->dataroot = 'home/domains/domain.com/moodledata/'

$CFG->dataroot = 'home/username/moodledata/'

and others but none worked. did anyone installed moodle on linux host with DirectAdmin panel? what is the problem?

I checked permission of moodledata folder and its permission is 777 also PHP safe mode is OFF
 
moodle

Hello,
thanks for your reply
according to moodle instructions the moodledata folder should be out of public folder.
 
Well, follow the path i gave without public_html.

In your examples where home was defined (that is suggested for a absolute path) you was missing the first /

Regards
 
Back
Top