Board index   FAQ   Search  
Register  Login
Board index System Administration Server installation and configuration

Saving the session in a Redis store

Discuss server installationa nd configuration issues here

Moderators: macek, egami, gesf

Saving the session in a Redis store

Postby stephaneeybert » Tue Feb 19, 2013 6:13 am

Hi,

I'm trying to save my session in a Redis store.

I coud install edis-2.6.9 and phpredis-2.2.2 on my php-5.3 server.

My phpinfo() displays:
Registered save handlers files user sqlite redis
session.save_handler redis redis
Redis Support enabled
Redis Version 2.2.2

My Redis server is started:
vps13495 src # ./redis-cli*
redis 127.0.0.1:6379> ping
PONG
redis 127.0.0.1:6379> exit

But when I try to configure my php in the /usr/local/lib64/php53/php.ini file by replacing with the directive:
session.save_handler = files
by the directive:
session.save_handler = redis
and I restart Apache, an http request is replied with a:
HTTP Error 500 (Internal Server Error)

Same thing if I add the directive:
session.save_path = "tcp://vpsXXXXX.ovh.net:6379?weight=1"

Same thing if I add the directive:
session.save_path = "tcp://localhost:6379"

My php log shows:
Error message: session_start() [function.session-start]: Cannot find save handler 'redis' - session startup failed

Any clue ?
stephaneeybert
New php-forum User
New php-forum User
 
Posts: 3
Joined: Fri Jan 25, 2013 5:42 am

Re: Saving the session in a Redis store

Postby stephaneeybert » Wed Feb 27, 2013 7:58 am

I went to another forum more appropriate for this issue:

https://groups.google.com/forum/?fromgr ... okIzPR6kTM
stephaneeybert
New php-forum User
New php-forum User
 
Posts: 3
Joined: Fri Jan 25, 2013 5:42 am


Return to Server installation and configuration

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron