laravel - Please make sure the PHP Redis extension is installed and enabled
Get the solution ↓↓↓I'am using Laravel queue.and I set up my .env file as follows.
QUEUE_DRIVER = database
QUEUE_CONNECTION = database
But I get this error.
Please make sure the PHP Redis extension is installed and enabled.
Can anyone explain that and fix this problem and give me the solution. Do I really need redis? Because I do not want to use it.
Answer
Solution:
Thank you for all.
I solve this issue by adding this line in.env
file
REDIS_CLIENT = predis
then run this command:
php artisan config:cache
Answer
Solution:
It gives that error because the registered service provider uses config/database.php's redis config array to initialize redis (make connection).
If you remove/comment-outIlluminate\Redis\RedisServiceProvider::class,
from theproviders
array ofconfig/app.php
it won't initialize redis and won't give an error.
Edit: please be sure that none of the drivers of session, queue, cache etc didn't useredis
after making that change.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: zsh: command not found: php
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.