在Centos 7上安装Moodle 3.4

时间:2018-01-18 18:34:08

标签: apache centos7 moodle php-7

使用Moodle网站上的说明安装测试Moodle(3.4.1),但访问时只有空白页面。我把moodle安装在/ var / www / html / moodle上。 install.php脚本返回成功。

我在ius存储库上使用PHP 7.0。

httpd错误日志包含以下条目: [Thu Jan 18 10:45:24.626059 2018] [:error] [pid 29857] [client :: 1:41946] PHP警告:未知:无法打开流:第0行的未知权限被拒绝

[Thu Jan 18 10:21:39.114019 2018] [:error] [pid 28769] [client :: 1:41930] PHP致命错误:未知:未能打开所需' / var / www / html /的moodle / index.php的' (include_path ='。:/ usr / share / pear:/ usr / share / php')在第0行的未知中

我试过chmod到755仍然是同样的问题。 我错过了一些php库吗?

谢谢,

亚历

2 个答案:

答案 0 :(得分:0)

尝试赋予所有权利

sudo chmod -R 777 /path/to/moodle

答案 1 :(得分:0)

在第一次安装时我可能做错了。重新安装干净,一切正常。