Php_redis.dll not working in windows

I tried both files here: https://github.com/nicolasff/phpredis/downloads . I use 64-bit wampserver for Windows 7 professionals. It seems that apache is trying to download the file, but somehow could not correctly recognize it. This is what I see in the error log:

Running PHP: Unable to load the dynamic library 'D: /wamp/bin/php/php5.3.13/ext/php_redis.dll' -% 1 is invalid Win32.

Has anyone encountered similar problems? Do we have a working solution for this?

+7
source share
6 answers

Unfortunately, I do not run the 64-bit version of PHP to test this, but for PHP 5.3 you can try this dll .

Dll from https://github.com/nicolasff/phpredis/downloads (php_redis-2.1.3-5.2-vc6-ts-4350b2a.zip), works fine with PHP 5.2.17 (32-bit version).

Hope you solve the problem.

+2
source

Just in case, this may help someone, I managed to solve the error on PHP 7.1.12 by installing a 32-bit DLL.

I got an error:

Warning: PHP Startup: Unable to load dynamic library '.../php_redis.dll' not a valid Win32 application 

But after installing the 32-bit version, the warning disappeared.

To find out which XAMPP / WAMP architecture you are using, go to phpinfo () and find the value β€œArchitecture”, this was the fourth line for me, and, as expected, the value is x86.

+2
source

I will add my column to the table:

I used these dlls for my AMPPS server (WAMP should be the same) on Windows 8 with PHP 5.5: https://pecl.php.net/package/redis/2.2.7/windows

after this tutorial

https://www.linkedin.com/pulse/using-redis-windows-php-shekhar-joshi

0
source

I had the same problem for 64-bit Windows 7 wampserver with PHP5.5.12 and worked for me from downstream Redis DLLs

http://windows.php.net/downloads/pecl/releases/redis/2.2.7/

0
source

I had the same case, I installed wamp 32bit, but I imported the library on a 64-bit one, however I had to implement a 32-bit version.

Check in task manager which version of the vamp you are using!

0
source

I had to check the Server API from phpinfo() to decide which version to use

If it is an Apache 2.0 handler (mod_php), use the Thread Safe version

If it's CGI go with Non Thread Safe Version

0
source

Source: https://habr.com/ru/post/917732/


All Articles