我是一菜鸟,麻烦各位老师帮忙解决一下这个问题:“您的网站设置可能不安全。请确保您的数据根目录(D:\Program Files\EasyPHP 2.0b1\www/moodledata)不能直接通过网页访问。”

我是一菜鸟,麻烦各位老师帮忙解决一下这个问题:“您的网站设置可能不安全。请确保您的数据根目录(D:\Program Files\EasyPHP 2.0b1\www/moodledata)不能直接通过网页访问。”

年年 张發表於
Number of replies: 4
您的网站设置可能不安全。请确保您的数据根目录(D:\Program Files\EasyPHP 2.0b1\www/moodledata)不能直接通过网页访问。
評比平均分數: -
In reply to 年年 张

Re: 我是一菜鸟,麻烦各位老师帮忙解决一下这个问题:“您的网站设置可能不安全。请确保您的数据根目录(D:\Program Files\EasyPHP 2.0b1\www/moodledata)不能直接通过网页访问。”

Y Han發表於
Hey. You can set the directory to be read only. However, I strongly suspect the security of windows given multiple patches so often.

In linux/unix/solaris, you can set the owner of the directory with local and set permission to be 444 I believe.
In reply to Y Han

回复: Re: 我是一菜鸟,麻烦各位老师帮忙解决一下这个问题:“您的网站设置可能不安全。请确保您的数据根目录(D:\Program Files\EasyPHP 2.0b1\www/moodledata)不能直接通过网页访问。”

年年 张發表於
Thanks,Han Y.我再试试其他方法吧!
In reply to 年年 张

Re: 我是一菜鸟,麻烦各位老师帮忙解决一下这个问题:“您的网站设置可能不安全。请确保您的数据根目录(D:\Program Files\EasyPHP 2.0b1\www/moodledata)不能直接通过网页访问。”

Wei Tang發表於
将moodledata从www目录中移出。

Moodle配置文件中,将datadirectory 改成正确的位置
In reply to Wei Tang

Re: 我是一菜鸟,麻烦各位老师帮忙解决一下这个问题:“您的网站设置可能不安全。请确保您的数据根目录(D:\Program Files\EasyPHP 2.0b1\www/moodledata)不能直接通过网页访问。”

Sativa Huang發表於

做个 .htaccess 在资料夹内,内容:
deny from all
AllowOverride None