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 are need to match into Unknown on line 0
First of all, let's say the reason for this error:
Execution of compiled source pack execution Phpize version inconsistent with phpize version in current PHP environment
Solution:
1, delete the compiled source package phpredis-master and the corresponding directory of the redis.so re-decompression Phpredis-master
2, detect the existence of/usr/sbin directory php php-config php-cgi phpize files, if there is deleted these files to 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 PHP's current installation directory for the above directory
3, re-enter the Phpredis-master directory for installation can be