1. Use the Phpinfo () function to view PHP version information, which will determine the extension file version.
2. Download Php_redis-2.2.7-5.5-ts-vc11-x86.zip and Php_igbinary-2.0.5-5.6-ts-vc11-x86.zip (PS: My zend Extension Build and PHP Extension build for Ts,vc11, so download these two versions, if you are different from mine, please go to the address below, download the corresponding version of yourself! )
http://windows.php.net/downloads/pecl/releases/redis/
http://windows.php.net/downloads/pecl/releases/igbinary/
3. After decompression, copy the Php_redis.dll and php_redis.pdb to the PHP ext directory
4. Modify the PHP.ini, (PS: This php.ini file is in the Apache directory) to include in the file:
; Php_redis
Extension=php_igbinary.dll
Extension=php_redis.dll
Note: Extension=php_igbinary.dll must be placed in front of extension=php_redis.dll, otherwise this extension will not take effect
5. After restarting Apache, use Phpinfo to see if the extension was installed successfully
Installing Redis Extensions for PHP under Windows