Phpredis-how to install php extensions

Source: Internet
Author: User
Tags file copy
Now I want to install a php extension for redis. The original php was installed with yum, and Version 5.3 now downloads a redis extension package phpredis and compiles it into one. so file, and in php. this extension is enabled in ini. When I use phpinfo to display information, there is no redis... now I want to install a php extension for redis. The original php is installed with yum, and the version is 5.3.

Now I downloaded a redis extension package phpredis and compiled it into one. so file, and in php. this extension is enabled in ini. When I use phpinfo to display information, there is no redis information, is it because I didn't set it. where does so file copy result from?

Thank you for your advice!

Ps: the extension installation steps are as follows:

Phpize./configuremake & make install

Edit: php. ini extension information has been added.

Edit: php. ini is php. ini in phpinfo. Currently, calling redis also takes effect, but I just don't know why phpinfo has no redis information ):

Reply content:

Now I want to install a php extension for redis. The original php is installed with yum, and the version is 5.3.

Now I downloaded a redis extension package phpredis and compiled it into one. so file, and in php. this extension is enabled in ini. When I use phpinfo to display information, there is no redis information, is it because I didn't set it. where does so file copy result from?

Thank you for your advice!

Ps: the extension installation steps are as follows:

Phpize./configuremake & make install

Edit: php. ini extension information has been added.

Edit: php. ini is php. ini in phpinfo. Currently, calling redis also takes effect, but I just don't know why phpinfo has no redis information ):

View the location of php. ini loaded in phpinfo (), and modify the configuration in the corresponding php. ini file.

'Display _ errors = On

DisplayStartupErrors = On'

Restart PHP (restart CGI or Apache in the PHP running mode). check whether there are any errors in the prompt information during startup. If any, follow the prompts to correct the errors.

Paste the php. ini file to load the extension configuration.

  1. Has cgi restarted?
  2. Check whether your modified php. ini is the php. ini used by your cgi.
  3. After the make install operation is successful, you will be prompted for the location of the so file to see if there is any file in that location.

Reference: http://www.php.net/manual/zh/install.pecl.phpize.php

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.