Skip to main content

PHP 8.1 and Redis

Comments

8 comments

  • cPRex Jurassic Moderator
    Hey there! I couldn't reproduce this issue as this installed normally for me under PHP 8.1: Build process completed successfully Installing '/opt/cpanel/ea-php81/root/usr/lib64/php/modules/redis.so' install ok: channel://pecl.php.net/redis-5.3.7 Extension redis enabled in php.ini [root@10-2-32-104 ~]# /opt/cpanel/ea-php81/root/usr/bin/php -m | grep redis redis
    This particular test was on cPanel 102.0.4 on CentOS 7.
    0
  • celiac101
    Thank you for the reply, and for testing this out. I am running CentOS v7.9.2009 and cPanel v100.0.10. Here is my output: #/opt/cpanel/ea-php81/root/usr/bin/pecl install redis WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-update pecl.php.net" to update downloading redis-5.3.7.tgz ... Starting to download redis-5.3.7.tgz (275,200 bytes) .........................................................done: 275,200 bytes 31 source files, building running: phpize
    #/opt/cpanel/ea-php81/root/usr/bin/php -m | grep redis Nothing. I wonder if the difference is due to you running cPanel 102.0.4? How can I run that?
    0
  • celiac101
    I figured out part of my issue. I had these functions in my php.ini disabled: disable_functions = popen, proc_open Once I enabled those it did install redis, but threw the error below, and redis is still not running on PHP 8.1: ERROR: `/root/tmp/pear/redis/configure --with-php-config=/opt/cpanel/ea-php81/root/usr/bin/php-config --enable-redis-igbinary=y --enable-redis-lzf=y --enable-redis-zstd=y' failed
    Any ideas?
    0
  • celiac101
    I don't know if this is the answer, but this forum (`pecl install redis` fails if lzf is enabled " Issue #1325 " phpredis/phpredis), at least on Ubuntu, explains how they fixed a similar issue using this command, but not sure what I need to do exactly: phpize; ./configure --enable-redis-igbinary --enable-redis-lzf; make;
    0
  • celiac101
    I found a solution. What worked was using the WHM > Software > Module Installers > PHP PECL "redis" to install the module. After this I did see the correct: #/opt/cpanel/ea-php81/root/usr/bin/php -m | grep redis redis I hope this helps someone else.
    0
  • cPRex Jurassic Moderator
    I just tested now on version 100 and I'm not seeing a change in behavior. Could you submit a ticket to our team so we could check that specific server?
    0
  • celiac101
    Thanks for the follow up, but as mentioned, I did get it working using the solution in my prior post.
    0
  • cPRex Jurassic Moderator
    Ah, my page didn't refresh before I sent my reply. I'm glad that's working well for you now!
    0

Please sign in to leave a comment.