Giedrius Giedrius - 1 year ago 270
PHP Question

phpredis on windows 7 64bit xampp

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 :/
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.

Answer Source

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.

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!

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download