This article to introduce to you about the PHP installation of Redis extension initialization failure solution, I hope that some of the methods will help you friends.
The error message is as follows:
PHP warning:php Startup:redis:Unable to initialize module
Module compiled with module api=20050922
PHP compiled with module api=20090626
These options need to match in Unknown on line 0
First of all, the reason why this error occurs:
Execute compiled source package execution Phpize version inconsistent with the version of Phpize in the current PHP environment
Workaround:
1, delete the compiled source package phpredis-master and the corresponding directory redis.so re-decompression Phpredis-master
2, detection/usr/sbin directory under the existence of PHP php-config php-cgi phpize files, if there are deleted these files re-establish the corresponding soft connection to this directory
Ln-s php/usr/local/php/bin/php
Ln-s php-cgi/usr/local/php/bin/php-cgi
Ln-s Php-config/usr/local/php/bin/php-config
Ln-s phpize/usr/local/php/bin/phpize
Please refer to the current installation directory of PHP
3. Re-enter the Phpredis-master directory for installation
http://www.bkjia.com/PHPjc/629817.html www.bkjia.com true http://www.bkjia.com/PHPjc/629817.html techarticle this article to introduce to you about the PHP installation of Redis extension initialization failure solution, I hope that some of the methods will help you friends. The error message is as follows: PHP warning:php startup:r ...