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 File
That 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 ~