Why is moodle not available?

落花浮王杯 提交于 2019-12-09 07:38:27

I think the moodledata folder does not have write permission. provide 0777 permission to the folder then it should be accessible.

Moodle does need to create and delete files within its working folder. If the folder owner is Apache, then you actually only need 700 permissions and can ignore the group. Otherwise you have to set 770 permissions to all directories in moodledata and 660 to all files in moodledata folder.

The critical thing is to make sure that the moodledata folder is NOT in any web accessible area (http root). If your http root is /var/www/html, then make it /var/moodledata.

You should first create that directory and give access to the user that run the web server to this directory. on centos/redhat:

chown apache.apache /var/moodledata

Note that on centos/redhat there is a good chance that SELINUX is blocking the web server process to access /var/moodledata directory. The easy way to check it is to disable it (temporarily) by typing:

setenforce 0
service httpd restart

Then if in this way it works - set it to allow access to this directory and the re-enable it in this way:

setenforce 1

if you want to disable selinux completely, then edit /etc/selinux/config and set this line:

SELINUX=disabled

on debian/ubuntu the ownership should be like this:

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