为什么moodle不可用? [英] Why is moodle not available?
问题描述
我配置了moodle,但收到一条错误消息:
I configured moodle but I'm getting an error message:
致命错误:$CFG->dataroot 配置不正确,目录不存在或不可访问!退出.
Fatal error: $CFG->dataroot is not configured properly, directory does not exist or is not accessible! Exiting.
我的moodle目录在var/www/html/moodle
中,在我的moodle/config.php
中是$CFG->dataroot = '/var/moodledata';
My moodle directory is in var/www/html/moodle
and in my moodle/config.php
is $CFG->dataroot = '/var/moodledata';
当我尝试启动moodle时仍然没有任何效果.对此可以做些什么?
Still nothing works when I try to start moodle. What can be done about it?
推荐答案
我认为moodledata 文件夹没有写入权限.为该文件夹提供 0777 权限,然后它应该可以访问.
I think the moodledata folder does not have write permission. provide 0777 permission to the folder then it should be accessible.
这篇关于为什么moodle不可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!