The phpredis extension in ubuntu cannot be loaded successfully.

Source: Internet
Author: User
Ubuntu12.04, PHP5.4.9, I have installed it for countless times, but it won't work. The redis-server and redis-cli terminals can work normally (I changed the port from 6379 to 6380 by default) the installation process is almost the same: {code ...} when newRedis () still prompts Redis... ubuntu12.04, PHP 5.4.9,
I have installed it for countless times,
Redis-server and redis-cli can work normally (I changed the port from 6379 to 6380 by default)

The installation process is almost the same:

Wget -- no-check-certificate http://github.com/nicolasff/phpredis/tarball/master-O phpredis.tar.gz tar phpredis.tar.gz cd nicolasff-phpredis-f1231c9phpize. /configure -- with-php-config =/usr/local/php/bin/php-configmake make install modify php. ini, add redis. so module vim/etc/php5/apache2/php. inivim/etc/php5/cli/php. add the following line of extension = redis for ini. so restart apache

When new Redis () is used, the system still prompts Redis not found.
Thank you here

Reply content:

Ubuntu12.04, PHP 5.4.9,
I have installed it for countless times,
Redis-server and redis-cli can work normally (I changed the port from 6379 to 6380 by default)

The installation process is almost the same:

Wget -- no-check-certificate http://github.com/nicolasff/phpredis/tarball/master-O phpredis.tar.gz tar phpredis.tar.gz cd nicolasff-phpredis-f1231c9phpize. /configure -- with-php-config =/usr/local/php/bin/php-configmake make install modify php. ini, add redis. so module vim/etc/php5/apache2/php. inivim/etc/php5/cli/php. add the following line of extension = redis for ini. so restart apache

When new Redis () is used, the system still prompts Redis not found.
Thank you here

Predis, you deserve it!

This package is a client written in native PHP code and does not require compilation extension.

In addition, you are not looking for a correctReal Apache configuration file, Viewphpinfo()This lineLoaded Configuration FileThat is the configuration file actually used by the system.

I will write an article using Redis for caching tonight, which will show two usage methods. Please wait ~

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.