大网数据广告活动
服务器运维问答

Roundcube 1.3.8 + Memcached + PHP 7.3

· 52CE 我爱测

I'm testing out moving my Roundcube 1.3.8 install over to php 7.3. It's load balanced and I have been using memcache for session storage with php 5 without any issues: $config['session_storage'] = 'memcache'; // Use these hosts f…

问题原文

原帖链接 · Aaron A · CC BY-SA 4.0

I'm testing out moving my Roundcube 1.3.8 install over to php 7.3. It's load balanced and I have been using memcache for session storage with php 5 without any issues: $config['session_storage'] = 'memcache';

// Use these hosts for accessing memcached
// Define any number of hosts in the form of hostname:port or unix:///path/to/socket.file
$config['memcache_hosts'] = array( 'server1:11211','server2:11211');

When I try out this same config on php 7.3.3 I get the following error:

[17-Mar-2019 19:11:16 +0000]: DB Error: Failed to connect to memcached. Please check configuration in /path/to/roundcube/program/lib/Roundcube/rcube_session_memcache.php on line 49 (GET /mail/)

I've been able to run a simple test script from php 7.3 to verify that memcache is indeed working.

Any suggestions why this won't work with Roundcube 1.3.8?

已采纳解答

原帖链接 · Michael Hampton · CC BY-SA 4.0

TL;DR: Switch to redis.

PHP 7 no longer supports php-memcache, and the project appears abandoned. Only php-memcached is supported. These are two different PHP APIs for using memcached. Roundcube hasn't been updated to use the new API, and apparently never will. A few distros are maintaining a fork of the old API but yours probably isn't one of them, and you should expect even that to go away eventually.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-03-17)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。