Redis is no longer supported in Windows, but the version
3.2.1is still available to use (ref), so that's why laragon contain version
3.*only. If you want to taste the latest redis version, using Docker through Laradock would be an alternative.
Installing PHP Redis Extension
If you right-click on the dashboard & check on
PHP > Extensions, you will not find redis extension because it doesn't come up with Laragon by default. So you have to add it manually, but yet it so easy.
Downloading The PHP Redis Extension DLL File
Go to https://pecl.php.net/package/redis and find the right match your current PHP version but also use the latest stable available. In my case, it was version
5.3.4 at the moment and it supports PHP
Windows icon DLL link to get the available distribution for the version. Download the archive that match with your PHP version. You might be confuse which one between Non-Thread-Safe (NTS) and Thread-Safe (TS) should you pick to download. To find out, just check on your Laragon dashboard and see the php version along with NTS or TS indication.
Adding the DLL File to the PHP Extension Folder
On the downloaded archive, you should find the
copy or move the file to the
C:\laragon\bin\php\php-7.4.19-Win32-vc15-x64\ext (change to your own path), and then add the line
extension=php_redis.dll to the
php.ini filewas generated after a version of php in laragon was run for the first time.
you should see that Redis extension is available now.
Starting The Redis Server
If you installed the full laragon, redis is availabe in this path
C:\laragon\bin\redis\redis-x64-3.2.100 (change to your own path). To run the redis server, you can use Command Prompt to execute the
And you can also stop it later using
Ctrl + C.
The phpRedisAdmin also available in the full laragon installation and can be accessed at http://localhost/redis
Top comments (6)
Great guide, works perfectly. Thank you.
Is there a way that you know of to get Redis to run automatically without the CLI through Laragon, like Apache and SQL do? I can just imagine the number of times in the future I'm going to forget to open a terminal to start it running before I start work.
I don't know why Redis is not in dashboard menu, maybe still in the work by the creator
You can find it in "Preferences>Services and ports"
Thanks for the info, I rarely click that Preferences menu 😄 and now it open the possibility to explore laragon more and create more posts
Fantastic, thank you