Hi
I’m using laravel 5.7 with phpredis (PHP 7.2), but I’m not able to get it to work with tls, I am trying to use it with digitalocean Redis managed database which only supports tls connections.
Any idea if tls even supported with laravel/phpredis?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
So I managed to get this to work, basically the current phpredis version that is shipped with php 7.2 (Ubuntu 18) is old and does not support tls, to fix this I had to update phpredis from pecl (https://pecl.php.net/package/redis)
Hello,
I’ve created a step by step guide on how to do that along with a short video demo for anyone who is experiencing the same issue:
Hope that this helps! Regards, Bobby
Hi. Struggling from similar issue.
Got this using phpredis (latest version from pecl):
And this using predis:
Database config:
OS: Ubuntu 18.04 Laravel: 5.8.35