Learn about Centmin Mod LEMP Stack today
Become a Member

Master Branch update inc/php_upgrade.inc to list latest PHP version in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Nov 13, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    45,633
    10,356
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +16,070
    Local Time:
    9:29 PM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    update inc/php_upgrade.inc to list latest PHP version in 123.09beta01

    For centmin.sh menu option 5 PHP upgrade/recompile menu list the latest available PHP version in the current server detected PHP major branch for folks to easily know what the latest version is. For example if your server has 7.2.31 installed, this update will list also the latest version available in 7.2 major branch i.e. 7.2.34 at time of this update. This possible by installing /usr/local/bin/getphpver based on centminmod/get-php-versions which uses PHP official Github repo's API to query what the latest releases are available and listed at Releases ยท php/php-src. Only stable releases are queried so alpha, beta and rc releases are excluded from querying and display.

    Example below where you have PHP 7.2.31 installed but latest installable reported as 7.2.34. So at prompt you enter 7.2.34 as version you want to update to

    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 MySQL Upgrade & Management
    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: zstd,pigz,pbzip2,lbzip2
    18). Suhosin PHP Extension install
    19). Install FFMPEG and FFMPEG PHP Extension
    20). NSD Install/Re-Install
    21). Data Transfer (TBA)
    22). Add Wordpress Nginx vhost + Cache Plugin
    23). Update Centmin Mod Code Base
    24). Exit
    --------------------------------------------------------
    Enter option [ 1 - 24 ] 5
    --------------------------------------------------------
    

    Code (Text):
    PHP Upgrade/Downgrade - Would you like to continue? [y/n] y
    
    ----------------------------------------------------------------
    Install which version of PHP? (version i.e. 5.6.40, 7.0.33, NGDEBUG)
    PHP 7.x/7.1.x/7.2.x/7.3.x is GA Stable but still may have broken PHP extensions.
    NGDEBUG is PHP 8.0 dev builds minus incompatible PHP extensions
    ----------------------------------------------------------------
    
    Current PHP Version: 7.2.31
    Latest PHP Version Installable: 7.2.34
    
    Enter PHP Version number you want to upgrade/downgrade to: 7.2.34
    
    Do you still want to continue? [y/n] y


    Continue reading...

    Centmin Mod Github Master branch

    Master branch is where most recent commits are made as at May 24, 2015.