Yorgocom Posted January 19, 2019 Share Posted January 19, 2019 (edited) Hello all I am having a very tough time to properly setup REDIS as a cache for prestashop. Some info: OS Ubuntu 18.10 Cosmic PHP Version 7.3.0 Apache 2.4.37 Prestashop 1.7.5 MySQL 5.7.20-18-18-log (Percona) Installed redis-server and redis-client as per online tutorial (https://www.digitalocean.com/community/tutorials/how-to-set-up-a-redis-server-as-a-session-handler-for-php-on-ubuntu-14-04) made sure i got latest redis versions/distrosredis.conf configured with the following line: bind 0.0.0.0 (tried with password also and without --i.e uncommenting and commenting requirepass yourverycomplexpasswordhere php.ini file configs: session.save_handler=redis session.save_path="tcp://127.0.0.1:6379" extension=redis.so redis server restarted. Apache restarted prestashop gives me a 500 error. php_error_log file shows: [19-Jan-2019 20:38:10 Asia/Beirut] PHP Warning: session_start(): Cannot find save handler 'redis' - session startup failed in /opt/lampp/htdocs/merkado/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 145 [19-Jan-2019 20:38:10 Asia/Beirut] PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /opt/lampp/htdocs/merkado/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2636 [19-Jan-2019 20:38:10 Asia/Beirut] PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /opt/lampp/htdocs/merkado/vendor/doctrine/orm/lib/Doctrine/ORM/UnitOfWork.php on line 2665 [19-Jan-2019 20:38:10 Asia/Beirut] PHP Warning: session_start(): Cannot find save handler 'redis' - session startup failed in /opt/lampp/htdocs/merkado/vendor/symfony/symfony/src/Symfony/Component/HttpFoundation/Session/Storage/NativeSessionStorage.php on line 145 when i comment the redis related lines in php.ini and revert to session.save_handler=files prestashop works again. Can anyone please help? Edited January 19, 2019 by Yorgocom fixed typo (see edit history) Link to comment Share on other sites More sharing options...
Presta_lover Posted March 11, 2020 Share Posted March 11, 2020 did you solve it? i have been looking for this info and there is NOT any in whole wwww Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now