Preparatory work
1. View PHP version, Phpinfo ()
2. Download extension-related plugins
A.igbinary
:
http://windows.php.net/downloads/pecl/releases/igbinary/
Note: Requires the same version as PHP
B.redis
:
http://windows.php.net/downloads/pecl/releases/redis/
Note: Requires the same version as PHP
3. Unzip the file and cause the file to be under the Ext folder in the PHP installation directory.
Includes the following four files: Php_igbinary.dll, php_igbinary.pdb, Php_redis.dll, php_redis.pdb
4. Modify the php.ini file to add "Extension=php_igbinary.dll,extension=php_redis.dll", note to load Php_igbinary.dll first.
5. Run Php.exe to see if there is an exception, if there is an exception to exclude the next error, if there is no can continue down execution.
6. Restart the Apache service, Phpinfo () to see if the extension was successfully installed.
Precautions and Exception Troubleshooting:
1.php.ini file location, generally try in the PHP installation directory, but some are not.
2. If you see the php[version number]ts.dll file in the PHP directory, you should select the TS version.
Original link: Php extension redis installation-window environment
PHP Extensions for Redis installation-window environment