Skip to content

Instantly share code, notes, and snippets.

@ezequiel9
Created July 26, 2018 01:23
Show Gist options
  • Save ezequiel9/4f1305c5daf42d34503cb13093664f73 to your computer and use it in GitHub Desktop.
Save ezequiel9/4f1305c5daf42d34503cb13093664f73 to your computer and use it in GitHub Desktop.
Install Redis on Windows 10, PHP 7+
Install Redis extension on your pc
Download the CORRECT version the DDL from the following link
https://pecl.php.net/package/redis/4.1.0/windows
Put the dll in the correct folder
Wamp -> C:\wamp\bin\php\php-XXXX\ext
Laragon -> C:\laragon\bin\php\php-XXX\ext
Edit the php.ini file adding
extension=php_redis.dll
Restart server and check phpinfo(); . Now Redis should be there!
@rmurussi
Copy link

hi guy,
Just fix

Download the CORRECT version the DDL from the following link
DLL

best regards.

Copy link

ghost commented Jan 19, 2021

FYI, latest version is at https://pecl.php.net/package/redis/5.3.2/windows
Just add /windows to the end of the link, when on the page for the newest version

@ericlie
Copy link

ericlie commented Sep 30, 2021

FYI, latest version for windows please visit
https://windows.php.net/downloads/pecl/releases/redis/5.3.4/

@Mistralys
Copy link

NOTE: Choosing the right thread based version (Thread Safe vs Non-Thread Safe) is also critical.

On my Windows development machine, only the thread safe version worked.

@Success-Guy
Copy link

I can't find the one that works with PHP 8.2. how can I do a workaround about this?

@Samimi-Information-Technology

For XAMPP Version 3.3.0 with PHP Version 8.2.12 with Apache 2.0 Handler, you will need the thread safe version.

Download Link:

(https://pecl.php.net/package/redis/6.0.2/windows)

Get the marked TS version:

Screenshot:

image

Then copy the dll to this directory:

Screenshot:

image

Then edit the php.ini adding this line:

extension=redis

Screenshot:

image

Save and restart your XAMPP Apache server.

Screenshot:

Check php info and redis must be shown now as below.

image

@Success-Guy
Copy link

Thank you @Samimi-Information-Technology for the info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment