help centre
For more info visit

How can we help?

Search our knowledge base for answers to
common questions and latest updates.

My activities New request


Memcached Sessions Multi Server Setup

Chris -


I am using memcached for my sessions on my multiserver setup. Session data is not shared between servers.


  • On-Premise Server + WebMail Multi-Server Installations: Version 7.5.2+
  • WebMail Only Multi-Server Installations: Version 7.5.2+


Memcached not configured for multiserver use.


Install memcached via:

yum install memcached.x86_64

Update config for memcached via vi /etc/sysconfig/memcached

Find the following line:


Update this line with the interface you wish memcached to listen on e.g:


Do this on every server you're running memcached on.

Update the lines ";session.save_path = "/tmp"" and "session.save_handler = files" in /etc/php.ini with:

session.save_handler = memcache
session.save_path = 'tcp://,tcp://,tcp://'

Create a file within /etc/php/conf.d/ called memcached.ini and add the following:

memcache.session_redundancy should be your total memcached servers +1, in this example we have 3 so memcache.session_redundancy is 4. If you had 4 memcached servers, the value would be 5.

Once this is done, run:

service httpd restart

Your memcached system should now be OK and you should now be able to set memcached as your session system within webadmin, adding each IP into the host section.

Have more questions? Submit a request


Contact our support team

+61 (7) 5357 6605