-
-
Save ezequiel9/4f1305c5daf42d34503cb13093664f73 to your computer and use it in GitHub Desktop.
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! |
FYI, latest version for windows please visit
https://windows.php.net/downloads/pecl/releases/redis/5.3.4/
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.
I can't find the one that works with PHP 8.2. how can I do a workaround about this?
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:
Then copy the dll to this directory:
Screenshot:
Then edit the php.ini
adding this line:
extension=redis
Screenshot:
Save and restart your XAMPP Apache server.
Screenshot:
Check php info and redis must be shown now as below.
Thank you @Samimi-Information-Technology for the info.
thank you @Samimi-Information-Technology for your help.
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