Dataroot location is not secure

Dataroot location is not secure

by David Yarwood -
Number of replies: 2

2.2.2

Hi there,

I'm trying to install, however my server will not allow me to have moodledata outside the root, so I have put in a .htaccess file, however it is still coming up with a Dataroot location is not secure error.

Any ideas?

Many thanks,

David

Average of ratings: -
In reply to David Yarwood

Re: Dataroot location is not secure

by David Yarwood -

Problem solved, I since used this advice is anyone else experiences similar.

Re: Installing Moodle 2.0 on godaddy shared server, stuck at data directory location on Confirm Paths page.
by Tim Hunt - Thursday, 30 July 2009, 08:40 AM
Group Core developersGroup Documentation writersGroup Particularly helpful Moodlers
So you cannot create a folder inside /modle/content/j/o/h/johndoe? Or in some other folder elsewhere? Weird.


You and I know the .htaccess file makes things secure, however, the Moodle install script is not able to work this out.


Probably the only way to get Moodle 2.0 install right now is to hack the install script. Find the place in install.php where it says

} else if (is_dataroot_insecure()) {

and change it to 

} else if (false and is_dataroot_insecure()) {
Average of ratings: Useful (1)
In reply to David Yarwood

Re: Dataroot location is not secure

by Martín Echegaray -

Thank you David!

Problem solved for me too.

Piensasolutions hosting here in Spain. Unable to write Dataroot.