Failed to connect to Redis: Please make sure the PHP Redis extension is installed and enabled

By: Roel
July 7, 2024

Two approach:

1. Download and Enable Redis Extension on XAMPP

Step 1: Download the Redis Extension DLL

  1. Go to the PECL website.
  2. Select the appropriate DLL file for your PHP version and architecture (e.g., php_redis-5.3.7-7.4-ts-vc15-x64.zip for PHP 7.4, thread-safe, Visual C++ 15, 64-bit).
  3. Download the ZIP file and extract it.
  4. Copy the php_redis.dll file to your xampp\php\ext directory (e.g., C:\xampp\php\ext).

Step 2: Enable the Redis Extension in php.ini

  1. Open your php.ini file, located in your xampp\php directory (e.g., C:\xampp\php\php.ini).
  2. Add the following line to enable the Redis extension:


2. If you have trouble installing the redis extension, just install the predis/predis package


"If you are unable to install the PhpRedis extension, you may install the predis/predis package via Composer."

More info

Tags:

About the Author

Roel
Roel

Hi, my name is Roel. I am a TALL stack developer. I created this site to document all web applications I created using the TALL stack. I exclusively built products using Laravel because I like the experience writing applications using the simplest framework/stack available.



Please login to comment.

© 2024 Talldevelopers.com, All rights reserved.