Invalid error

I am reading the moodles documentation, which says that if the root data directory should be in the public html folder of the site (see that I can not create it outside it, since I do not have sufficient privileges since I use a free account), then you must chmod it before 770, and also use htaccess to protect it. Now I create a moodle inside my domain in the / moodle / folder and the moodle / moodle-uploads / uploads / downloads folder and I have the .htaccess setting in / moodle -uploads / .htaccess where its contents

order deny,allow
deny from all

as stated at http://docs.moodle.org/20/en/Creating_Moodle_site_data_directory

But still, when I run the autoloader script, it says the data root directory is not safe

+4
source share
2 answers

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

go to the root of moodle in the install.php file, and if you use version 2.6 on line 341 or other versions to search for the function is_dataroot_insecure()and change it to false in the else if state and try to install again, and that is ..,

enter image description here

+10
source

By default, it will give you a warning about its availability in the public html folder in accordance with the documents in the link you specified.

, moodle moodle , -, . , , config.php, ; moodledata , , :

dataroot moodle .htaccess , .

+3

Source: https://habr.com/ru/post/1527154/


All Articles