PHP installation Redis Extension initialization failed workaround _php Tutorial

Source: Internet
Author: User
Tags config php
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 ...

  • 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.