I'm trying to make Redis work on my windows machine for development purposes. I already made Redis up and running on my Ubuntu 10.04 server with phpredis client.
At the moment on my windows machine i can start Redis server, because it requires no installation and it is good enaugh for development, but I can't figure out how to install phpredis. It seems very confusing, I already spend two days working on this and no result.
I have cloned source files with Git, but i did that using Git Bash, but that was last command who worked in the same way as ubuntu. I also have downloaded two .dll files, one with 'ts' and another with 'nts', have no idea what is the difference :/
http://commandperls.com/install-phpredis/ there is manual how to install phpredis, but it works only on ubuntu for my. I'm very newbie for a command line and I'm not sure if this even suppose to work on windows, like with cmd or git bash.
So my question is, how can I make that phpredis work on windows? Is there is any way to make that happen? I know there is Predis and I already tried that one, but because I'm planning to use phpredis on my server, i would like to use same on development machine.
Found it! Apologizing for misapprehension, but all this situation is really confusing for guy who such a little about servers management. Anyway, below is my solution.
http://code.google.com/p/pecl-win/downloads/detail?name=php_redis-2.1.3-5.3-ts.dll&can=2&q=
Link above provides .dll file, which in my case must be copied to: C:\xampp\php\ext
and add a line in to php.ini file extension=php_redis.dll
and lastly restart apache2 service.
And that's it, nothing has to be installed, as long as redis server already up and running this will provide connection between php and redis!
2020-05-06 update
Seems like previous url only contains outdated .dll files. @Niz provided in the comments an updated url where you can download the correct version of redis DLL for your windows. Make sure to download the one that matches your redis and php versions.
https://pecl.php.net/package/redis
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With