Sharing Sessions : setting up Memcached

Memcached is a high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load…

On the VM that will be the memcached server :

apt-get install memcached

On the ajaxplorer server instance (beware of distinction between memcache and memcached... :

apt-get install php5-memcache

Also be sure that /etc/php5/conf.d/memcache.ini contains this line :

extension=memcache.so

Restart apache.

Edit conf/bootstrap_conf.php (or /etc/ajaxplorer/bootstrap_conf.php depending on your install) and add the following :


$AJXP_INISET = array();
// ADD THESE, REPLACE THE IP BY YOUR MEMCACHED SERVER IP. Default memcached port is 11211.
$AJXP_INISET["session.save_handler"] = "memcache";
$AJXP_INISET["session.save_path"] = "tcp://10.2.40.255:11211?persistent=1&weight=1&timeout=1&retry_interval=15";