Learn about Centmin Mod LEMP Stack today
Become a Member

Beta Branch update DMOTD_PHPCHECK routine in 130.00beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Jul 7, 2022.

  1. eva2000

    eva2000 Administrator Staff Member

    49,291
    11,295
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,574
    Local Time:
    3:28 AM
    Nginx 1.21.x
    MariaDB 10.x
    update DMOTD_PHPCHECK routine in 130.00beta01


    - logging into Centmin Mod servers via SSH can optionally also check and report if a newer PHP version is available than the currently installed PHP branch i.e. PHP 8.1.7 installed but PHP 8.1.8 being available. This routine is disabled by default, unless you enable it via persistent config variable DMOTD_PHPCHECK='y' set in persistent config file /etc/centminmod/custom_config.inc.
    - this routine checks the latest version via listed PHP versions at Tags · php/php-src and compares it to locally installed PHP version. But the actual php download is done via php.net's CDN rather than github. This means there is a window of time when github reported version exists but php.net CDN has yet to populate the PHP version. This update double checks to ensure php.net CDN version of the new PHP version is available before reporting to end user that a new PHP version is available

    example

    Code (Text):
    ===============================================================================
    * PHP Update May Be Available via centmin.sh menu option 5
    * see https://community.centminmod.com/forums/18/
    ===============================================================================
    * Current PHP Version:        8.1.7
    * Latest PHP Branch Version:  8.1.8 (github.com/php/php-src/tags)
    ===============================================================================


    Continue reading...

    130.00beta01 branch