Learn about Centmin Mod LEMP Stack today
Register Now

Master Branch update PHP 7.2 libzip, libsodium & argon2 route

Discussion in 'Centmin Mod Github Commits' started by eva2000, Mar 21, 2018.

  1. eva2000

    eva2000 Administrator Staff Member

    35,030
    7,731
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,922
    Local Time:
    7:09 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    update PHP 7.2 libzip, libsodium & argon2 route

    - For Centmin Mod 123.09beta01 and newer branches, fix PHP 7.2 compiles for libzip + libsodium + argon2 support https://community.centminmod.com/threads/update-php-7-2-add-argon2-password-libsodium-support.13294/
    - Support is disabled by default as PHP uses embedded libzip zip version. To enable libsodium and argon2 you need to use a newer version of libzip zip library. So to enable set in persistent config file /etc/centminmod/custom_config.inc the variable PHP_LIBZIP='y' and then recompile PHP 7.2 version i.e. 7.2.3 or newer via centmin.sh menu option 5

    Continue reading...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.
     
    • Informative Informative x 1
  2. JJC84

    JJC84 Premium Member Premium Member

    139
    56
    28
    Jan 31, 2018
    Ratings:
    +80
    Local Time:
    4:09 PM
    1.13.9
    10.1
    Thanks, doing this right now.
     
    • Like Like x 1
  3. JJC84

    JJC84 Premium Member Premium Member

    139
    56
    28
    Jan 31, 2018
    Ratings:
    +80
    Local Time:
    4:09 PM
    1.13.9
    10.1
    Not entirely sure where to put this, but here's the timing on my server.

    Code:
    Build complete.
    Don't forget to run 'make test'.
    
    make[1]: Leaving directory `/svr-setup/php-7.2.3/fpm-build'
    
    real    9m48.337s
    user    13m56.267s
    sys    4m40.501s
    
    Thu Mar 22 04:07:25 UTC 2018
    Success: PHP make ok
    
    service php-fpm restart
    Gracefully shutting down php-fpm  done
    Starting php-fpm  done
    
    make install
    Installing PHP SAPI module:       embed
    Installing shared extensions:     /usr/local/lib/php/extensions/no-debug-non-zts-20170718/
    Installing PHP CLI binary:        /usr/local/bin/
    Installing PHP CLI man page:      /usr/local/php/man/man1/
    Installing PHP FPM binary:        /usr/local/sbin/
    Installing PHP FPM defconfig:     skipping
    Installing PHP FPM man page:      /usr/local/php/man/man8/
    Installing PHP FPM status page:   /usr/local/php/php/fpm/
    Installing phpdbg binary:         /usr/local/bin/
    Installing phpdbg man page:       /usr/local/php/man/man1/
    Installing PHP CGI binary:        /usr/local/bin/
    Installing PHP CGI man page:      /usr/local/php/man/man1/
    Installing build environment:     /usr/local/lib/php/build/
    Installing header files:          /usr/local/include/php/
    Installing helper programs:       /usr/local/bin/
    program: phpize
    program: php-config
    Installing man pages:             /usr/local/php/man/man1/
    page: phpize.1
    page: php-config.1
    Installing PEAR environment:      /usr/local/lib/php/
    [PEAR] Archive_Tar    - already installed: 1.4.3
    [PEAR] Console_Getopt - already installed: 1.4.1
    [PEAR] Structures_Graph- already installed: 1.1.1
    [PEAR] XML_Util       - already installed: 1.4.2
    [PEAR] PEAR           - already installed: 1.10.5
    Wrote PEAR system config file at: /usr/local/etc/pear.conf
    You may want to add: /usr/local/lib/php to your php.ini include_path
    /svr-setup/php-7.2.3/build/shtool install -c ext/phar/phar.phar /usr/local/bin
    ln -s -f phar.phar /usr/local/bin/phar
    Installing PDO headers:           /usr/local/include/php/ext/pdo/
    
    real    0m29.309s
    user    0m9.824s
    sys    0m16.771s
    
    Updated:
      ImageMagick6.x86_64 0:6.9.9.39-1.el7.remi
      ImageMagick6-c++.x86_64 0:6.9.9.39-1.el7.remi
      ImageMagick6-c++-devel.x86_64 0:6.9.9.39-1.el7.remi
      ImageMagick6-devel.x86_64 0:6.9.9.39-1.el7.remi
      ImageMagick6-libs.x86_64 0:6.9.9.39-1.el7.remi
    
    Complete!
    
    real    0m27.416s
    user    0m9.147s
    sys    0m5.401s
    
    ***************************************************
    * PHP upgraded and auto reinstalled PHP extensions
    * PHP_PGO='y' detected. PHP compiled with Profile Guided Optimizations
    * https://software.intel.com/en-us/blogs/2015/10/09/pgo-let-it-go-php
    ***************************************************
    
    Total PHP Upgrade Time: 1750.155402670 seconds
     
    • Informative Informative x 1
  4. eva2000

    eva2000 Administrator Staff Member

    35,030
    7,731
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,922
    Local Time:
    7:09 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    Thanks for sharing PHP_PGO='y' for Profile Guided Optimization based PHP 7.2 does take more time indeed :)
     
  5. JJC84

    JJC84 Premium Member Premium Member

    139
    56
    28
    Jan 31, 2018
    Ratings:
    +80
    Local Time:
    4:09 PM
    1.13.9
    10.1
    Ha! Yes it definitely does.
     
  6. JJC84

    JJC84 Premium Member Premium Member

    139
    56
    28
    Jan 31, 2018
    Ratings:
    +80
    Local Time:
    4:09 PM
    1.13.9
    10.1
    Compiling Nginx now so I’ll post that as well.
     
  7. eva2000

    eva2000 Administrator Staff Member

    35,030
    7,731
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +11,922
    Local Time:
    7:09 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    separate thread ;)
     
    • Agree Agree x 1
..