Problem with Data directory

Problem with Data directory

by Irfan Delilovic -
Number of replies: 5

Hello everyone ,


I installed moodle 2.8.1 on a web host so when I get to the second step of the installation and click Next I get this error:


Parent directory (/home/vhosts) is not writeable. Data directory (/home/vhosts/moodledata) cannot be created by the installer.


Also on top of the page this is written :


Warning: file_exists(): open_basedir restriction in effect. File(/home/vhosts/moodledata) is not within the allowed path(s): (/home/vhosts/srednjaskola.freeoda.com/:/tmp/:/usr/share/pear/) in/home/vhosts/srednjaskola.freeoda.com/moodle/install.php on line 333

Free Web Hosting

Warning: is_writable(): open_basedir restriction in effect. File(/home/vhosts) is not within the allowed path(s): (/home/vhosts/srednjaskola.freeoda.com/:/tmp/:/usr/share/pear/) in/home/vhosts/srednjaskola.freeoda.com/moodle/install.php on line 337

Free Web Hosting
Can you help me to solve this problem and proceed after this step ?
Average of ratings: -
In reply to Irfan Delilovic

Re: Problem with Data directory

by Colin G -

If your web host has cpanel click "file manager" then navigate to the directory "home" then create a new directory "moodledata". Then click "change permissions" on moodledata to 777.

That should work.

In reply to Colin G

Re: Problem with Data directory

by Irfan Delilovic -

Thanks Colin G ,


With that I passed from that error but stumbled across another one :


Dataroot location is not secure

I tried putting file premission of moodle folder to 777 it wont work .


In reply to Irfan Delilovic

Re: Problem with Data directory

by Colin G -
Is moodledata outside your webroot ? It should not be inside of public_html


In reply to Colin G

Re: Problem with Data directory

by Usman Asar -
Picture of Plugin developers Picture of Testers

Colin,

this is where the problem is, Irfan cannot get to write on his root directory. Free hosting providers doesn't allow that.

If he's just testing out the Moodle, then keeping moodledata on public_html is no harm.

In reply to Usman Asar

Re: Problem with Data directory

by Colin G -

Are your 2 directories in these locations ?

moodle:

/home/vhosts/srednjaskola.freeoda.com/public_html/moodle

moodledata :

/home/vhosts/srednjaskola.freeoda.com/moodledata


?