Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP Redis extension is installed and enabled in laravel 6 version

Tags:

laravel-6

When I am trying To installing redis in larvel 6 version I can not install redis and it extension it show me the error.enter image description here

like image 896
user8099291 Avatar asked Dec 01 '22 13:12

user8099291


2 Answers

By default In Laravel 6 'client' => env('REDIS_CLIENT', 'phpredis'), is not working but when i change this 'client' => env('REDIS_CLIENT', 'predis') .

like image 164
user8099291 Avatar answered Dec 19 '22 03:12

user8099291


For ubuntu

sudo apt-get install php7.2-redis //7.2 is php version

then

sudo systemctl restart php7.2-fpm
like image 44
bhavinjr Avatar answered Dec 19 '22 04:12

bhavinjr