php - 迁移后 Moodle 给出 "Session handler is misconfigured"错误

标签 php mysql linux moodle

我迁移了一个使用 moodle 的网站。现在我收到此错误:"Session handler is misconfigured"

我检查了服务器的日志,但我找不到任何东西,我检查了所有文件权限:

php -v

PHP 5.5.9-1ubuntu4.17 (cli) (built: May 19 2016 19:05:57)

mysql -V

mysql  Ver 14.14 Distrib 5.5.49, for debian-linux-gnu (x86_64) using readline 6.3

知道如何解决这类问题吗?

最佳答案

可能缺少内存缓存模块,内存缓存是最常用的缓存引擎。 只需(在 ubuntu 中)以这种方式安装:

sudo apt-get install php5-memcached memcached

您还必须以这种方式启动 memcached 并重新启动 apache2:

service memcached start
service apache2 restart

关于php - 迁移后 Moodle 给出 "Session handler is misconfigured"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38112506/

相关文章:

c# - C# 中的数组索引越界异常

linux - 显示 Linux 中父目录下的文件和文件夹详细信息

PHP:数组 $_POST 循环问题

php - 在 PHP 中测试变量是否存在的最佳方法; isset() 明显坏了

PHP 获取站点 URL 协议(protocol) - http 与 https

php - 用于匹配字符串中单引号单词并忽略转义单引号的正则表达式模式

php - Symfony2 理解 Doctrine 查询加入

mysql - 在sql查询中添加来自另一个表的计数

linux - open(const char *path, int oflag) 不接受像 "~/my.log"这样的路径

linux - Shell 脚本 - SFTP -> 如果复制,删除吗?