Debian/Nginx/PHP-FPM Sessions in Memcached

Posted November 3, 2014 7.3k 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

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
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.