Learn about Centmin Mod LEMP Stack today
Register Now

PHP PHP 7.2.0 Released

Discussion in 'Nginx and PHP-FPM news & discussions' started by eva2000, Nov 30, 2017.

  1. Sunka

    Sunka Well-Known Member

    1,142
    313
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +510
    Local Time:
    8:08 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    If I want to upgrade from latest 7.1 branch, I have to just open centmin menu, select php upgrade and add 7.2.0 version.
    Nothing to fine tune after or something like that?
     
  2. pamamolf

    pamamolf Premium Member Premium Member

    3,885
    381
    83
    May 31, 2014
    Ratings:
    +741
    Local Time:
    9:08 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Yes just like that and all are automated :)
     
  3. eva2000

    eva2000 Administrator Staff Member

    45,676
    10,371
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,094
    Local Time:
    5:08 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    yes just make sure to update centmin mod 123.09beta01 code BEFORE doing that (centmin.sh menu option 23 submenu option 2 or running cmupdate command that was recently added)
     
  4. Sunka

    Sunka Well-Known Member

    1,142
    313
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +510
    Local Time:
    8:08 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    hmmm
    Code (Text):
    service php-fpm restart
    Gracefully shutting down php-fpm . done
    Starting php-fpm [01-Dec-2017 21:23:47] NOTICE: PHP message: PHP Warning:  PHP Startup: Unable to load dynamic library 'ssh2.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20170718/ssh2.so (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/ssh2.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20170718/ssh2.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/ssh2.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0


    Code (Text):
    PHP Warning:  PHP Startup: Unable to load dynamic library 'ssh2.so' (tried: /usr/local/lib/php/extensions/no-debug-non-zts-20170718/ssh2.so (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/ssh2.so: cannot open shared object file: No such file or directory), /usr/local/lib/php/extensions/no-debug-non-zts-20170718/ssh2.so.so (/usr/local/lib/php/extensions/no-debug-non-zts-20170718/ssh2.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
    7.2


    Code:
    ***************************************************
    * 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: 1061.484795066 seconds
    Any help for ssh2 extension for php 7.2?
     
  5. Sunka

    Sunka Well-Known Member

    1,142
    313
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +510
    Local Time:
    8:08 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    Seems that I got it
    PHP-FPM - Install PHP extension ssh2

    Code (Text):
    [root@upcloud ssh2-php7]# php --ri ssh2
    
    ssh2
    
    SSH2 support => enabled
    extension version => 0.12+dev
    libssh2 version => 1.8.0
    banner => SSH-2.0-libssh2_1.8.0
    
    
    [root@upcloud ssh2-php7]# php -v
    PHP 7.2.0 (cli) (built: Dec  1 2017 21:20:34) ( NTS )
    Copyright (c) 1997-2017 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies
        with Zend OPcache v7.2.0, Copyright (c) 1999-2017, by Zend Technologies
     
  6. eva2000

    eva2000 Administrator Staff Member

    45,676
    10,371
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,094
    Local Time:
    5:08 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    yes you need to manually reinstall ssh2 php extension with each php update as it is not part of centmin mod by default
     
  7. Sunka

    Sunka Well-Known Member

    1,142
    313
    83
    Oct 31, 2015
    Pula, Croatia
    Ratings:
    +510
    Local Time:
    8:08 AM
    Nginx 1.17.9
    MariaDB 10.3.22
    hm...
    I did not need it throughh 7.1.x
    Only did it when upgraded from 5 to 7.0 and 7.0 to 7.1 and now from 7.1 to 7.2
     
  8. eva2000

    eva2000 Administrator Staff Member

    45,676
    10,371
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,094
    Local Time:
    5:08 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Yeah mean major php updates not minor