gpt4 book ai didi

php - 我怎样才能启用moodle?

转载 作者:搜寻专家 更新时间:2023-10-31 21:06:43 25 4
gpt4 key购买 nike

我已经为 moodle 安装了 postgres,我得到了以下说明:

Apache/mod_php setup
  • Give full access to the project directory to the process running apache. You might also have to set the x-flag on all .php files. $ chmod -R a+rw * Create a 'moodle.vhost.conf' from moodle.vhost.conf.example in project directory. * Create a symlink from /usr/local/var/moodle to the project directory. $ cd /usr/local/var; ln -s moodle * Also symlink the new virtual host into apache config dir. $ cd /private/etc/apache2/other $ sudo ln -s /moodle.vhost.conf moodle.conf $ sudo apachectl restart * Create your own custom /etc/vcmoodle/config_local.php file for things local to your environment by copying, and modifying if required, the example file. $ sudo mkdir -p /etc/vcmoodle $ sudo cp /config_local.php.example /etc/vcmoodle/config_local.php

还是不行。当我查看我的 apache 根时,它只是标准的 apache 页面,没有 moodle。我有这个 sites-available

:/etc/apache2/sites-available$ ls
000-default.conf default-ssl.conf moodle.conf

和文件 moodle.conf 的内容

<VirtualHost *:80>
DocumentRoot "/usr/local/var/moodle"
ServerName moodle.localdev.kth.se

ErrorLog /usr/local/var/moodle/error_log
LogLevel debug

<Directory "/usr/local/var/moodle">
AllowOverride all
Order allow,deny
Allow from 127.0.0.1
</Directory>
</VirtualHost>

但是我的 Web 服务器上没有 Moodle 页面。我做错了什么?

最佳答案

如果您正在运行 Ubuntu(根据标签判断),您需要将您的项目目录放在 /var/www 中。 Apache 无法访问指定目录中的项目文件夹,除非您更改用户/组等。

您尝试过的是 Web 文件夹的正常 apache 默认位置,但 Ubuntu 喜欢改变一些东西。

关于php - 我怎样才能启用moodle?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31137841/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com