I'm trying to follow How To Share PHP Sessions on Multiple Memcached Servers article and implement that to my environment:
/etc/php.d/memcache.ini
:
# grep -v ^\; /etc/php.d/memcache.ini
extension=memcache.so
memcache.allow_failover=1
memcache.session_redundancy=2
session.save_handler=memcache
session.save_path='tcp://192.168.52.143:11211, tcp://192.168.52.142:11211'
#
phpinfo();
:
# php -i | grep -E 'memcache.allow_failover|memcache.session_redundancy|session.save_handler|session.save_path'
memcache.allow_failover => 1 => 1
memcache.session_redundancy => 2 => 2
session.save_handler => memcache => memcache
session.save_path => tcp://192.168.52.142:11211, tcp://192.168.52.143:11211 => tcp://192.168.52.142:11211, tcp://192.168.52.143:11211
#
both systems are RHEL6
and running php-5.3.3
:
# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 6.6 (Santiago)
# rpm -q php php-pecl-memcache
php-5.3.3-40.el6_6.x86_64
php-pecl-memcache-3.0.5-4.el6.x86_64
#
TCP
wise: .142
is able to get to .143:11211
, and .143
is able to get to .142:11211
, SELinux
is in Permissive
mode.
I am able to see some chunks stored in one memcached
server, but not in another.
What am I doing wrong?