Get the most out of your Centmin Mod LEMP stack
Become a Member

Beta Branch update redis PHP extension routines for 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jun 21, 2016.

  1. eva2000

    eva2000 Administrator Staff Member

    54,895
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    10:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    update redis PHP extension routines for 123.09beta01

    there is now 2 versions of redis PHP extension 3.x branch for PHP 7 and 2.2.x branch for PHP 5.x
    Code (Text):
    REDISPHP_VER='2.2.8'        # redis PHP version
    REDISPHPSEVEN_VER='3.0.0'   # redis PHP version for PHP =>7.x
    REDISPHP_GIT='n'            # pull php 7 redis extension from git or pecl downloads
    

    1st is for PHP <7.x, the 2nd line is for PHP 7.x's redis php extension version and last variable is to control whether or not you want to pull redis PHP extension for PHP 7.x from previous github branches when REDISPHP_GIT='y' is set. It defaults to off so to pull from official pecl downloads now that 3.0.0 is stable and released at PECL :: Package :: redis


    Continue reading...

    123.09beta01 branch
     
    Last edited: Jun 21, 2016
  2. eva2000

    eva2000 Administrator Staff Member

    54,895
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    10:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    can be updated in 123.09beta01 via centmin.sh menu option 13 submenu option 2
    Code (Text):
    --------------------------------------------------------
         Centmin Mod Menu 123.09beta01 centminmod.com    
    --------------------------------------------------------
    1).  Centmin Install
    2).  Add Nginx vhost domain
    3).  NSD setup domain name DNS
    4).  Nginx Upgrade / Downgrade
    5).  PHP Upgrade / Downgrade
    6).  XCache Re-install
    7).  APC Cache Re-install
    8).  XCache Install
    9).  APC Cache Install
    10). Memcached Server Re-install
    11). MariaDB 5.2/5.5 & 10.x Upgrade Sub-Menu
    12). Zend OpCache Install/Re-install
    13). Install/Reinstall Redis PHP Extension
    14). SELinux disable
    15). Install/Reinstall ImagicK PHP Extension
    16). Change SSHD Port Number
    17). Multi-thread compression: pigz,pbzip2,lbzip2...
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Update - Nginx + PHP-FPM + Siege
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 13
    --------------------------------------------------------
    

    Code (Text):
    --------------------------------------------------------
             Redis PHP Extension Sub-Menu            
    --------------------------------------------------------
    1). Install Redis PHP Extension
    2). Reinstall Redis PHP Extension
    3). Back to Main menu
    --------------------------------------------------------
    Enter option [ 1 - 3 ] 

    Code (Text):
    php -v
    PHP 5.6.22 (cli) (built: Jun 20 2016 16:39:08)
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    

    Code (Text):
    php --ri redis
    
    redis
    
    Redis Support => enabled
    Redis Version => 2.2.8
    

    Code (Text):
    php -v
    PHP 7.0.7 (cli) (built: Jun 20 2016 17:09:16) ( NTS )
    Copyright (c) 1997-2016 The PHP Group
    Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
        with Zend OPcache v7.0.6-dev, Copyright (c) 1999-2016, by Zend Technologies
    

    Code (Text):
    php --ri redis
    
    redis
    
    Redis Support => enabled
    Redis Version => 3.0.0
    
     
    Last edited: Jun 21, 2016
  3. eva2000

    eva2000 Administrator Staff Member

    54,895
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    10:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  4. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:35 PM
    Mainline
    10.2
    I think you mean 5.x? :)
     
  5. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:35 PM
    Mainline
    10.2
  6. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    1:35 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    In case that I need to downgrade, I should use option 1 to install not to reinstall?
     
  7. eva2000

    eva2000 Administrator Staff Member

    54,895
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    10:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    for PHP 7, set in persistent config /etc/centminmod/custom_config.inc the following to tell it to use redis php extension source from github repo instead of pecl downloads
    Code (Text):
    REDISPHP_GIT='y'
    

    Then run centmin.sh menu option 13, submenu option 2 to recompile PHP 7.x

    of course you can very if you get segfaults in php and /var/log/message logs etc for php
     
  8. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    1:35 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    Code:
    tail -10 /var/log/php-fpm/www-error.log
    tail -10 /var/log/php-fpm/www-php.error.log
    both empty for now.
    I think it is good for now
     
  9. Xon

    Xon Active Member

    173
    61
    28
    Nov 16, 2015
    Ratings:
    +229
    Local Time:
    8:35 PM
    1.15.x
    MariaDB 10.3.x
  10. eva2000

    eva2000 Administrator Staff Member

    54,895
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    10:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Good to know guys :D
     
  11. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    1:35 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    I have no set in persistent config /etc/centminmod/custom_config.inc row
    REDISPHP_GIT='y' because I use PECL download.
    But there is 3.1.0 version for a month now, and I still have installed 3.0.0 version.
    How to update to 3.1.0?
     
  12. rdan

    rdan Well-Known Member

    5,447
    1,408
    113
    May 25, 2014
    Ratings:
    +2,201
    Local Time:
    8:35 PM
    Mainline
    10.2
    I think you need to specify it like this:
    Code:
    REDISPHPSEVEN_VER='3.1.0' # redis PHP version for PHP =>7.x
    
     
  13. Sunka

    Sunka Well-Known Member

    1,150
    325
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +525
    Local Time:
    1:35 PM
    Nginx 1.17.9
    MariaDB 10.3.22
    I have nothing regarde php ri redis in custom.conf
    I want pecl edition.
    So probably I have to add:

    Code:
    REDISPHPSEVEN_VER='3.1.0'   # redis PHP version for PHP =>7.x
    REDISPHP_GIT='n'   # pull php 7 redis extension from git or pecl download
    And then what? Reinstall php ri redis through centmin menu?

    This is strange solution, because we will need to re-edit custom conf with every new version of php ri redis
     
  14. eva2000

    eva2000 Administrator Staff Member

    54,895
    12,240
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,811
    Local Time:
    10:35 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+