I am trying to get Memcached working on my EE (2.9.2) website. I have memcached
installed correctly (both Memcache and the PHP extension) and running as a daemon:
% ps -ef|grep memcache
user pid 1 0 16:45 ? 00:00:00 memcached -d -p 11211 -u memcached -m 64 -c 1024 -P /path/to/memcached.pid
I have added the following code to my config.php
file as per the docs:
$config['memcached'] = array(
array(
'host' => 'XX.XXX.XX.XXX',
'port' => 11211,
'weight' => 2,
),
);
However, when I try to select Memcached
from the drop-down list of options under CP Home > Administration > General Configuration I see the following (in red):
Cannot connect to Memcached, using File driver instead
I cannot understand why this is happening and EE's logging of the problem is 100% non-existent (there is nothing in the Apache error log, EE Control Panel log). Any ideas? Thanks in advance.