Welcome to Centmin Mod Community
Register Now

Beta Branch add additional php compression extensions by default in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Feb 10, 2019.

  1. eva2000

    eva2000 Administrator Staff Member

    40,634
    9,023
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,891
    Local Time:
    6:04 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    add additional php compression extensions by default in 123.09beta01

    - add brotli, lz4, lzf and zstd php extension support via 4 variables. Disabled by default.
    - for new centmin mod installations, you can setup below 4 variables in persistent config file /etc/centminmod/custom_config.inc prior to initial centmin mod install
    - for existing centmin mod installations, can be enabled prior to centmin.sh menu option 5 runs by setting in persistent config file /etc/centminmod/custom_config.inc the following variables:

    PHP_BROTLI='y' # brotli php extension https://github.com/kjdev/php-ext-brotli
    PHP_LZFOUR='y' # lz4 php extension https://github.com/kjdev/php-ext-lz4
    PHP_LZF='y' # lzf php extension https://github.com/php/pecl-file_formats-lzf php-ext-lzf
    PHP_ZSTD='y' # zstd php extension https://github.com/kjdev/php-ext-zstd

    - by default centmin mod 123.09beta01 only recompiles php extensions on centmin.sh menu option 5 runs if php majoir version updates are detected i.e. PHP 7.1 to 7.2 or 7.2 to 7.3 and skip recompiles for minor versions i.e. PHP 7.2.15 to 7.2.16 or 7.3.2 to 7.3.3. This means if you want the above 4 extensions enabled for existing PHP version you intend to recompile, you need to do a one off set up of variable AUTODETECPHP_OVERRIDE='y' in persistent config file /etc/centminmod/custom_config.inc for the centmin.sh menu option 5 run. This tells PHP to recompile php extensions even for minor PHP versions. After you have the above 4 extensions enabled, you can remove AUTODETECPHP_OVERRIDE='y' from persistent config file /etc/centminmod/custom_config.inc

    Continue reading...

    123.09beta01 branch

     
    • Like Like x 3
  2. eva2000

    eva2000 Administrator Staff Member

    40,634
    9,023
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +13,891
    Local Time:
    6:04 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    checking installed php extensions
    Code (Text):
    php --ri brotli
    
    brotli
    
    Brotli support => enabled
    Extension Version => 0.6.2
    Library Version => 1.0.7
    

    Code (Text):
    php --ri lz4
    
    lz4
    
    LZ4 support => enabled
    Extension Version => 0.3.5
    LZ4 Version => 1.8.2
    

    Code (Text):
    php --ri lzf
    
    lzf
    
    lzf support => enabled
    extension version => 1.6.7
    liblzf version => bundled
    optimized for => speed
    

    Code (Text):
    php --ri zstd
    
    zstd
    
    Zstd support => enabled
    Extension Version => 0.5.0
    Interface Version => 1.3.8
    
     
    • Like Like x 1