phpredis extension doesn't work, unable to load 'redis.so'

后端 未结 5 1888
失恋的感觉
失恋的感觉 2021-02-13 11:45

I installed nginx, php, php-fpm, php-pecl-redis by yum.

All of them work but the last one.

When I run /usr/sbin/php-fpm, I got this:

5条回答
  •  走了就别回头了
    2021-02-13 12:36

    Related to this bug https://bugs.launchpad.net/ubuntu/+source/php-redis/+bug/1762935

    You should remove php-redis from packages: apt purge php-redis , and install it via pecl install redis

    You should add "extension=redis.so" to php.ini

    and remove redis from config.d in your php directory:

    rm /etc/php/7.2/fpm/conf.d/@20-redis.ini
    

    and

    rm /etc/php/7.2/cli/conf.d/@20-redis.ini
    

    restart php fpm and you will see that problem solved

提交回复
热议问题