PHP installation Redis Extended initialization failure solution

Source: Internet
Author: User
Tags config php redis

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.