moodle $CFG->dataroot is not configured properly

走远了吗. 提交于 2019-12-11 22:43:11

问题


that is basically the problem, I read that the folder must be outside the public html and it could be the permision, but i tried both of them and I still could not solve it, what more could it be?

I did 2 things before the problem started,

  1. created a subdomain named master
  2. used git pull in the public_html to update the website

I have updated the same way before and this problem had never happened, I didn't rewrite anything because the log doesn't show anything related with the moodle, or the data folder of the moodle.


回答1:


The Moodle use a data folder to store content such as document or picture files uploaded by users, it's best create this folder outside of your web host folder.

After the Moodle installation it's created the config.php file in the Moodle installation folder, there you have:

$CFG->dataroot  = 'data folder location'; 

You can try setup the data folder path manually, if the config.php file doesn't exist maybe you don't have permission to write files on the server disk/folder.



来源:https://stackoverflow.com/questions/33378796/moodle-cfg-dataroot-is-not-configured-properly

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!