Home >Backend Development >PHP Problem >What should I do if the PHP redis extension installation fails?
The solution to the unsuccessful installation of the php redis extension: first put php_redis.dll and php_igbinary.dll into the PHP ext folder; then modify the php.ini configuration file; and finally restart the WebServer.
Recommendation: "PHP Video Tutorial"
PHP under windows, redis plug-in installation failed
PHP5.4.x redis extension php_redis.dll
Extension download address:
https://github.com/nicolasff/phpredis/downloads
Contains two versions, Non Thread Safe and Thread Safe
First put php_redis.dll and php_igbinary.dll into the PHP ext folder,
Then add the following code to the php.ini configuration file:
extension=php_igbinary.dll extension=php_redis.dll
Restart WebServer
Note:
extension=php_igbinary.dll must be placed in front of extension=php_redis.dll, otherwise this extension will not take effect.
The xampp used
win7 x64
php version is 5.4.4
System Windows NT 6.1 build 7601 (Windows 7 Ultimate Edition Service Pack 1) i586
Build Date Jun 13 2012 21:17:57
Compiler MSVC9 (Visual C 2008)
Architecture x86
at https:/ /github.com/nicolasff/phpredis... I downloaded the new phpredis_5.4_vc9_ts.7z version and installed it. The corresponding plug-in did not appear in phpinfo
Check the php error log and reported PHP Warning: PHP Startup: in Unknown on line 0, it should be incompatible
I don’t know how to configure redis in a similar environment, thank you
(I have changed to version 5.4.7 of php and it cannot be installed successfully =_=)
The above is the detailed content of What should I do if the PHP redis extension installation fails?. For more information, please follow other related articles on the PHP Chinese website!