Debian/Nginx/PHP-FPM Sessions in Memcached

November 3, 2014 6.4k views


i want to save the sessions in memcached on my debian server / nginx.
I have updated our php.ini file /etc/php5/fpm/php.ini

session.save_handler = memcached;
session.save_path = "tcp://"

But in phpinfo() session.save_path still stay /var/lib/php5 after nginx/php-fpm reload.

pp: the savehandler is successfully updated: session.savehandler:memcached

More Info:
PHP Version 5.4.4-14+deb7u14

Can you guys help me?
Thanks a lot !

  • V
2 Answers

Try restating php5-fpm instead of reloading. Does that fix it?

i found the problem:

Additional .ini files parsed : /etc/php5/fpm/conf.d/000-session-store-default.ini

and the config was in the ini file.


Have another answer? Share your knowledge.