I installed the php redis extension. But when I run the test code, I got the following error:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626+lfs/redio.so' - /usr/lib/php5/20090626+lfs/redio.so: cannot open shared object file: No such file or directory in Unknown on line 0 PHP Fatal error: Class 'Redis' not found in /var/www/test/redisTest.php on line 2
My php version is 5.3.10, I installed a new version of phpredis.
May I get your help? THANKS!
Installation steps are:
git clone https://github.com/nicolasff/phpredis.git cd phpredis phpize make make install
Then add the configuration file to / etc / php 5 / fpm / confi.d to load redis.so
source share