Php installation of redis extension initialization failure solution. This article introduces how to solve the initialization failure of redis extension installation in php. I hope some methods will help you. The error message is as follows: PHPWarning: PHPStartup: r this article will introduce you to the solution to the failure of initializing php to install the redis extension. I hope some methods will help you.
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, let's talk about the cause of this error:
The version used to compile the source code package and run phpize is inconsistent with the phpize version in the current php environment.
Solution:
1. delete the compiled source code package phpredis-master and redis. so in the corresponding directory and decompress phpredis-master again.
2. check whether the php-config php-cgi phpize file exists in the/usr/sbin Directory. if the phpize file exists, delete the file and 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
The preceding directory is subject to the current php installation directory.
3. re-enter the phpredis-master Directory for installation.
Bytes. The error message is as follows: PHP Warning: PHP Startup: r...