redis causes errors in phpmyadmin

Viewed 359

Today I have a problem with phpmyadmin and redis, meaning that when I try to view the phpmyadmin management page the following error appears: phpMyAdmin - Error

Error during session start; please check your PHP and / or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.
session_start (): Cannot find save handler 'redis' - session startup failed.

Note that if I go to the terminal, and do the command redis-cli everything works perfectly.

Why is this happening?

1 Answers

I had the same error. The problem was here in the php.ini file. I had to copy the following into the php.ini file:

session.save_path= "tcp://host1:6379?weight=1, tcp://host2:6379?weight=2&timeout=2.5, tcp://host3:6379?weight=2&read_timeout=2.5"

The solution was to replace host1, host2, and host3 with localhost:

session.save_path= "tcp://localhost:6379?weight=1, tcp://localhost:6379?weight=2&timeout=2.5, tcp://localhost:6379?weight=2&read_timeout=2.5"
Related