using store.type redis "The configuration is invalid: predis/predis is not available."

1,234 views
Skip to first unread message

liam.w...@gmail.com

unread,
Aug 6, 2018, 8:04:16 AM8/6/18
to SimpleSAMLphp
Hi,

I'm trying to switch simplesaml sessions over to redis, but I can't work out how to enable/load "lib/SimpleSAML/Store/redis.php" I get the following on configuration page "(-) predis/predis (required if the redis data store is used)".

In the config it looks to be as simple as just changing the type to redis, but then ti errors as above, what am I missing, I've googles for over an hour and usually find what I want within minutes, but hardly any info on this?

Regards
Liam

Tim van Dijen

unread,
Aug 6, 2018, 12:45:58 PM8/6/18
to SimpleSAMLphp
Hi Liam,

You need to install the PHP-module for redis to make this work.
Naming-conventions may differ per distribution, but it will be something like `php-pecl-redis`.

- Tim

Op maandag 6 augustus 2018 14:04:16 UTC+2 schreef liam.w...@gmail.com:

liam.w...@gmail.com

unread,
Aug 7, 2018, 4:35:29 AM8/7/18
to SimpleSAMLphp
Hi Tim,

Thanks for that, that's what confuses me, I have Redis installed and currently even use it for sessions within my web app perfectly fine. I just can't find much info about needing to do anything extra to get Redis working on SimpleSaml, other than setting stopre.type and settings Redis server details.

phpinfo:
redis
Redis Support enabled
Redis Version 4.0.0
Available serializers php, igbinary

I'm on php5.6 on Ubuntu.

Regards
Liam

Tim van Dijen

unread,
Aug 7, 2018, 4:59:22 AM8/7/18
to SimpleSAMLphp
My bad!

You don't need a PHP-module, you need a SimpleSAML-module:
composer require predis/predis

- Tim

Op dinsdag 7 augustus 2018 10:35:29 UTC+2 schreef liam.w...@gmail.com:

liam.w...@gmail.com

unread,
Aug 7, 2018, 5:14:20 AM8/7/18
to SimpleSAMLphp
Hi Tim,

That was so simple! LOL 

I don't use many composer libraries so never thought to check that. I was focusing on php server side of things. I knew it'd be a really simple thing as with anything that you spend hours finding nothing on.

Thank you so much :-)

regards
Liam
Reply all
Reply to author
Forward
0 new messages