Install Redis Server and PHP Extension for Windows 11

...
profile picture of ghostzero
GhostZero
Software Developer
Published at October 5, 2021

Install Redis Server for Windows 11

First, download the windows executable for the specific release you want to use. As I wrote this, the latest version was Redis 5.0.10 for Windows 11.

https://github.com/tporadowski/redis/releases

After download you need to run the executable file. Follow the instructions of the installer, you may also be able to limit the memory which redis server will use.

After the installation your done with installing the redis server.

Install Redis Extension for PHP

This is an optional step. If you're using PHP as your language for developing things you also want to install the Redis PHP Extension to be able to use Redis in your application stack, like Laravel.

First, to find out if your PHP installation is thread safe (TS) or non-thread safe (NTS), run:

C:\Users\Ghost> php -i|findstr "Thread"
Thread Safety => enabled
Thread API => Windows Threads

Second, download the right extension from the official php repository:

https://windows.php.net/downloads/pecl/releases/redis/

In my case, i used 5.3.4/php_redis-5.3.4-8.0-ts-vs16-x64.zip. The -ts stands for thread safe (-nts is non-thread safe), and -x64 was my 64 bit computer architecture.

Third, enable the redis extension in your php.ini by adding the following line:

extension=redis

In my case, the php.ini was located in C:\xampp\php.

And that's it!

Thanks for reading :)

Follow me!

Related stories

You liked Install Redis Server and PHP Extension for Windows 11? You may also be interested in these following articles...
...

With SUBtember right around the corner, you might be wondering what all the fuss is about. What's the difference between a subathon and SUBtember? Let's take a closer look.

GhostZero
1 month ago
...

Düsseldorf. 70,000 visitors came to the DoKomi for manga fans and cosplay in Düsseldorf. This means that DoKomi set a new record for visitor numbers and a growth of +27 percent (compared to 2019).

GhostZero
3 months ago
...

Mit YAFS (Yet Another Firmware Selector) ist es nun möglich die Freifunk Ense Firmware für unterstützte Router zu finden und herunterzuladen.

GhostZero
6 months ago
GhostZero is live on Twitch!
Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy.