data directory problems on shared host... help please

data directory problems on shared host... help please

by james skaggs -
Number of replies: 1
Hello I have tried and tried to work this out... everything else seems to work ok but the files button under courses brings up this error.

I have tried different directory names... both in and out of the moodle directory. And I have set the access and retried for each of these settings:
755, 750, 705, and 777 and no matter what I get this error except of course the file name and location changes when I try different names or locations.

Warning: MkDir failed (No such file or directory) in /home/httpd/vhosts/uccbi.fairmount.nu/httpdocs/moodle/lib/moodlelib.php on line 816

ERROR: You need to create the directory http://uccbi.fairmount.nu/images with web server write access

I have also sent this to the web host support but Im not sure if Ill get a response from them so any help you have would be really appreciated.

Skaggs
Average of ratings: -
In reply to james skaggs

Re: data directory problems on shared host... help please

by Martin Dougiamas -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
The data directory should not be a URL - it needs to be a file system path - take a closer look at the examples in config.php.

You probably want something like:

$CFG->dataroot = '/home/httpd/vhosts/uccbi.fairmount.nu/moodledata';