Home  >  Article  >  Backend Development  >  What should I do if the PHP redis extension installation fails?

What should I do if the PHP redis extension installation fails?

藏色散人
藏色散人Original
2020-09-28 10:17:502948browse

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.

What should I do if the PHP redis extension installation fails?

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn