Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

moodle data root location not secure error

I read moodles documentation where it says that if the data root directory has to be in the site's public html folder ( Please see that i can not create it outside it since i dont have sufficient privileges as i am using a free account ). then you have to chmod it to 770 and also use htaccess to protect it. Now i am creating the moodle inside my domain at folder /moodle/ and moodle uploads folder is /moodle-uploads/uploads/ and i have an .htaccess setup in /moodle-uploads/.htaccess where its contents are

order deny,allow
deny from all

as specified on http://docs.moodle.org/20/en/Creating_Moodle_site_data_directory

But still when i run the auto installer script it says the data root directory is not secure

like image 399
Harshit Laddha Avatar asked Feb 16 '14 03:02

Harshit Laddha


1 Answers

This is not the best way of doing it but coding hack to just get rid of this error if you like try it..,

in moodle root go the install.php and if you are using 2.6 in line 341 or others versions search for is_dataroot_insecure() function and change it to false in the else if condition and try to install again,and that it..,

enter image description here

like image 83
wordpresrox Avatar answered Sep 22 '22 20:09

wordpresrox