Welcome to Centmin Mod Community
Become a Member

upgrade PhpRedis version?

Discussion in 'Other Centmin Mod Installed software' started by fablab, Apr 14, 2021.

  1. fablab

    fablab New Member

    21
    2
    3
    May 23, 2020
    Ratings:
    +6
    Local Time:
    11:20 AM
    1.25.3
    MariaDB-server-10.4.31-1.el7.centos.x86_64
    Hi!
    my setup:
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed: 123.09beta01
    • Nginx Version Installed: 1.19.10
    • PHP Version Installed: 7.4.16
    • MariaDB MySQL Version Installed: 10.3.28

    I am using "Wordpress Redis Cache at Nginx Level" and Redis Object Cache WordPress plugin .... and it is FLYING! wow.
    thanks for putting all this together!


    I noticed that my server is using a 2 years old version of PhpRedis (5.1.1 vs 5.3.4 which seems to be the latest as per PECL :: Package :: redis ).
    It's all working as intended, so probably by Fear Of Missing Out as I read plenty of of "small improvements on the changelog ( PECL :: redis Changelog ) I am wondering why my set up is not upgraded.
    Is it on purpose ( some incompatibilities issues ? )
    Or am I supposed to run some manual scripts now to upgrade?
    via the centmin menu?

    thanks.
    fabrice.

    output of Redis Cache WordPress plugin
    and output of:
    php --ri redis

    I see some older versions of phpredis had been downloaded in the past...
    centminmod]#
     
  2. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    6:20 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    Running cmupdate and then centmin.sh menu option 13 sub menu option 2 will update PHP redis extension :) Or cmupdate and then running centmin.sh menu option 5 for PHP updates will auto update PHP redis extension too.
     
  3. fablab

    fablab New Member

    21
    2
    3
    May 23, 2020
    Ratings:
    +6
    Local Time:
    11:20 AM
    1.25.3
    MariaDB-server-10.4.31-1.el7.centos.x86_64
    Thanks.
    did NOT work and left PhpRedis unchanged at 5.1.1

    but
    worked. Thanks for that !

    This makes me wonder if Option13 -> option 2 not picking up the PhpRedis extension upgrade might mean that I have other PHP extension out of date, and possibly vulnerable ??
     
  4. Rhodium

    Rhodium New Member

    26
    6
    3
    Jul 1, 2020
    Ratings:
    +11
    Local Time:
    10:20 AM
    I only get 5.3.2 in Option13 and the last is 5.3.4, is that correct?
     
  5. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    6:20 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
  6. BamaStangGuy

    BamaStangGuy Active Member

    669
    192
    43
    May 25, 2014
    Ratings:
    +272
    Local Time:
    3:20 AM
    Just an FYI, nothing in here is getting me past:
    Code:
    [00:37][root@web.bamapolitics.com ~]# php --ri redis | egrep "Redis Support|Redis Version"
    Redis Support => enabled
    Redis Version => 6.3.0RC1
    https://github.com/phpredis/phpredis/releases

    6.3.0 is the latest and I think I have run into a bug with RC1 but can not get it upgraded.

    @eva2000
     
  7. duderuud

    duderuud Active Member

    318
    97
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +215
    Local Time:
    10:20 AM
    1.29 x
    11.4
    Same problem here...
     
  8. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    6:20 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    are you guys recompiling same PHP exact versions hoping to get new redis version?

    Centmin Mod skips recompile PHP extensions for minor versions i.e. PHP 8.4.x will skip PHP extension compiles as they usually aren't needed. Only time PHP extensions get recompiled for ones needing recompiling is

    1. change in PHP major versions i.e switching PHP 8.3 to 8.4 or 8.5 or PHP 8.5 to 8.4 or 8.3 etc OR
    2. persistent config /etc/centminmod/custom_config.inc with
    Code (Text):
    AUTODETECPHP_OVERRIDE='y'
    

    and then you run centmin.sh menu option 5 OR
    3. centmin.sh menu option 13 submenu option 2

    Code (Text):
    php --ri redis
    
    redis
    
    Redis Support => enabled
    Redis Version => 6.3.0
    Redis Sentinel Version => 1.0
    Available serializers => php, json, igbinary
    Available compression => zstd, lz4
    
    Directive => Local Value => Master Value
    redis.arrays.algorithm => no value => no value
    redis.arrays.auth => no value => no value
    redis.arrays.autorehash => 0 => 0
    redis.arrays.connecttimeout => 0 => 0
    redis.arrays.distributor => no value => no value
    redis.arrays.functions => no value => no value
    redis.arrays.hosts => no value => no value
    redis.arrays.index => 0 => 0
    redis.arrays.lazyconnect => 0 => 0
    redis.arrays.names => no value => no value
    redis.arrays.pconnect => 0 => 0
    redis.arrays.previous => no value => no value
    redis.arrays.readtimeout => 0 => 0
    redis.arrays.retryinterval => 0 => 0
    redis.arrays.consistent => 0 => 0
    redis.clusters.cache_slots => 0 => 0
    redis.clusters.auth => no value => no value
    redis.clusters.persistent => 0 => 0
    redis.clusters.read_timeout => 0 => 0
    redis.clusters.seeds => no value => no value
    redis.clusters.timeout => 0 => 0
    redis.pconnect.pooling_enabled => 1 => 1
    redis.pconnect.connection_limit => 0 => 0
    redis.pconnect.echo_check_liveness => 1 => 1
    redis.pconnect.pool_detect_dirty => 0 => 0
    redis.pconnect.pool_poll_timeout => 0 => 0
    redis.pconnect.pool_pattern => no value => no value
    redis.session.locking_enabled => 0 => 0
    redis.session.lock_expire => 0 => 0
    redis.session.lock_retries => 100 => 100
    redis.session.lock_wait_time => 20000 => 20000
    redis.session.lock_failure_readonly => 0 => 0
    redis.session.early_refresh => 0 => 0
    redis.session.compression => none => none
    redis.session.compression_level => 3 => 3
    
     
  9. duderuud

    duderuud Active Member

    318
    97
    28
    Dec 5, 2020
    The Netherlands
    Ratings:
    +215
    Local Time:
    10:20 AM
    1.29 x
    11.4
    I am running
    Code (Text):
    AUTODETECPHP_OVERRIDE='y'


    CMM option 13->2 still gives me
    Code (Text):
    Redis Version => 6.3.0RC1
     
  10. eva2000

    eva2000 Administrator Staff Member

    58,894
    12,490
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,122
    Local Time:
    6:20 PM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    what about centmin.sh menu option 5 recompile?