Install the redis extension component in php5 + in CentOS 67

Source: Internet
Author: User
: This article describes how to install the redis extension component in php5 + in CentOS 67. if you are interested in the PHP Tutorial, refer to it. Go to the official redis website, click the clients link, and click the PHP item in Browse by language. take phpredis as an example. open the extension component link and download the extension component from github.

After the download is complete, decompress the package to obtain the phpredis folder and enter.
Run phpize to obtain configure.

Run the configure script after obtaining configure.
./configure --enable-redis-igbinary

An error may be reported during installation. Currently, there are two types of errors:

  1. Cannot find php-config. Please use-with-php-c
    First use find/-name php-config to find the php-config path, find the path, and add the-with-php-config parameter. The value is the php-config path.

  2. Checking for igbinary between Des... Configure: error: Cannot find igbinary. h
    This error is reported when the igbinary component is not installed. you can download it from the php official website.
    Download the package, decompress the package, and enter igbinary to run phpize to obtain configure./configure-with-php-c & make install.

After the configuration is complete, run make & make install.

Finally, open the php configuration file in the text editor and add the following to the php configuration file:
extension=igbinary.so
extension=redis.so

Then create a phpinfo script. Then restart the environment.

After the environment is restarted, run the phpinfo script to search for redis items and igbinary items. if you can find redis items and igbinary items, the installation is successful.

The above steps are successfully executed with the root permission in CentOS6.7 + nginx + php-fpm + php5.4.45

'). AddClass ('pre-numbering '). hide (); $ (this ). addClass ('Has-numbering '). parent (). append ($ numbering); for (I = 1; I <= lines; I ++) {$ numbering. append ($ ('
  • '). Text (I) ;}; $ numbering. fadeIn (1700) ;}) ;}; script

    The above section describes how to install the redis extension component in php5 + in CentOS 67, including some content. I hope my friends who are interested in the PHP Tutorial can help me.

    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.