Debian/Nginx/PHP-FPM Sessions in Memcached


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 save_handler is successfully updated: session.save_handler:memcached

More Info: PHP Version 5.4.4-14+deb7u14

Can you guys help me? Thanks a lot !

  • V

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.


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