Debian/Nginx/PHP-FPM Sessions in Memcached

November 3, 2014 3.6k views

Hi,

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://127.0.0.1:11211?persistent=1&weight=1&timeout=1&retry_interval=15"

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.

Thanks

Have another answer? Share your knowledge.