Join the community today
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

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:33 AM
    Nginx 1.13.x
    MariaDB 5.5
    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
    • Like Like x 1
  2. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:33 AM
    Nginx 1.13.x
    MariaDB 5.5
    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
    • Like Like x 1
  3. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:33 AM
    Nginx 1.13.x
    MariaDB 5.5
  4. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:33 AM
    1.11
    10.2
    I think you mean 5.x? :)
     
    • Agree Agree x 1
  5. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:33 AM
    1.11
    10.2
  6. Sunka

    Sunka Active Member

    917
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    2:33 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    In case that I need to downgrade, I should use option 1 to install not to reinstall?
     
  7. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:33 AM
    Nginx 1.13.x
    MariaDB 5.5
    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
     
    • Like Like x 1
  8. Sunka

    Sunka Active Member

    917
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    2:33 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    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
     
    • Like Like x 1
  9. Xon

    Xon Active Member

    130
    57
    28
    Nov 16, 2015
    Ratings:
    +171
    Local Time:
    8:33 AM
    1.11.x
    MariaDB 10.1.x
    • Like Like x 1
    • Optimistic Optimistic x 1
  10. eva2000

    eva2000 Administrator Staff Member

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:33 AM
    Nginx 1.13.x
    MariaDB 5.5
    Good to know guys :D
     
    • Like Like x 2
  11. Sunka

    Sunka Active Member

    917
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    2:33 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    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. RoldanLT

    RoldanLT Well-Known Member

    3,901
    949
    113
    May 25, 2014
    Phillipines
    Ratings:
    +1,298
    Local Time:
    8:33 AM
    1.11
    10.2
    I think you need to specify it like this:
    Code:
    REDISPHPSEVEN_VER='3.1.0' # redis PHP version for PHP =>7.x
    
     
    • Like Like x 1
  13. Sunka

    Sunka Active Member

    917
    240
    43
    Oct 31, 2015
    Rijeka, Croatia
    Ratings:
    +388
    Local Time:
    2:33 AM
    Nginx 1.13.3
    MariaDB 10.1.24
    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

    30,178
    6,786
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,139
    Local Time:
    10:33 AM
    Nginx 1.13.x
    MariaDB 5.5