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

后端 未结 5 1859
失恋的感觉
失恋的感觉 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:25

    For people who are upgrading their php from 7.0 to 7.4 like me, and not able to get php-redis working. These are the steps I used after following the answers above.

    1) remove Redis

    sudo apt purge php-redis
    

    2) Install Igbinary

    sudo apt-get install php-igbinary
    

    3) Install php-redis again

    sudo apt-get install php-redis
    

    I did the steps above because it seems only php7.0 is recognising the php-redis install but not the currently enabled php7.4

    I also recommend removing other versions of PHP if you have should your problem continue unsolved.

提交回复
热议问题