I'm trying to use php-redis as the session store to my craftcms site. What I've tried:

  1. apt-get install php5-redis
  2. Edited php.ini with the following: session.save_handler = redis session.save_path = "tcp://redis:6379?auth=password”

Still, I don't see any sessions saved in redis.

Can anyone help? Thanks!

1 Answer 1


This may help:

Add the following to the general.php

'cacheMethod' => 'redis',
'overridePhpSessionLocation' => 'tcp://localhost:6379' 

Add the following to the index.php

ini_set('session.save_handler', 'redis')
  • For some reason I can't see redis as a Registered save handler in phpinfo() Any tip to overcome this?
    – Erez Rabih
    Commented Jun 16, 2016 at 6:37
  • Can you check if you got the following in the php.ini [Session] session.save_handler = redis session.save_path = "tcp://localhost:6379" session.use_cookies = 1 Also check if you are editing the right php.ini file "Loaded Configuration File" that is shown in phpinfo()
    – berkayunal
    Commented Jun 17, 2016 at 9:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.