How to remove “cluster-40926” from my dataroot in moodle

一笑奈何 提交于 2020-01-11 13:08:29

问题


Path of moodledata in Moodle is

/nas/wp/www/cluster-40926/securityorg/test_moodle.

Here is the code

$dir = dirname(__FILE__);
echo "Full path to this dir: " . $dir;

Output:

Full path to this dir: /nas/wp/www/cluster-40926/securityorg/test_moodle

But this creates an error "Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting"
cluster-40926 folder donot exits so I thnk if I can remove cluster-40926 from the path, problem will be solved.

Please help, Thanks in advance


回答1:


I cannot find the real answer, i again reinstall the new version of moodle and problem is solved. If any one face this problem plz reinstall the moodle.




回答2:


The moodle data directory and the web folder must be separate. Also the moodle data directory must be outside of the www folder.

https://docs.moodle.org/27/en/Installing_Moodle#Create_the_.28moodledata.29_data_directory



来源:https://stackoverflow.com/questions/32254524/how-to-remove-cluster-40926-from-my-dataroot-in-moodle

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