sub:Moodle

sub:Moodle

服务器配置 #

apache2.4+php-fpm设置参考文档 #

http://wiki.apache.org/httpd/PHP-FPM 配置使用Unix Socket:

ProxyPassMatch ^/(.*\.php(/.*)?)$ unix:/path/to/socket.sock|fcgi://127.0.0.1:9000/path/to/your/documentroot/

其中要注意两点,一是fpm进程无需在9000号监听,那是个虚拟的端口,真实的连接还是发生在Unix Socket中。二是URL最后不必添加$1。

使用httpd2.4+php-fpm配置注意事项 #

nginx规则,解决上传图片或录像等文件名中使用中文字符中导致文件无法显示的问题。

rewrite "^/pluginfile.php/(.*)$" /pluginfile.php?file=/$1 last;
rewrite "^/draftfile.php/(.*)$" /draftfile.php?file=/$1 last;

Moodle升级时注意事项

Question Engine(Moodle)

Caching(Moodle)

moosh Moodle Shell