Join the community today
Register Now

Beta Branch add optional PHP version check in 123.09beta01

Discussion in 'Centmin Mod Github Commits' started by eva2000, Mar 19, 2020.

  1. eva2000

    eva2000 Administrator Staff Member

    48,912
    11,190
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,424
    Local Time:
    10:41 PM
    Nginx 1.21.x
    MariaDB 10.x
    add optional PHP version check in 123.09beta01

    Like nginx latest version check on initial SSH login, add support for optional php latest version check for the detected PHP branch you installed via setting DMOTD_PHPCHECK='y' in persistent config file /etc/centminmod/custom_config.inc. Disabled by default, but when enabled with DMOTD_PHPCHECK='y', you will see something like below for PHP latest version check for the PHP version you have installed

    will need to run cmupdate first and set DMOTD_PHPCHECK='y' and then exit SSH session and relogin to see it in action if you current PHP version isn't latest within that installed PHP branch.

    Code (Text):
    ===============================================================================
    * Nginx Update May Be Available via centmin.sh menu option 4
    * see https://centminmod.com/nginx.html#nginxupgrade
    ===============================================================================
    * Current Nginx Version:           1.17.8
    * Latest Nginx Mainline Available: 1.17.9 (centminmod.com/nginxnews)
    ===============================================================================
    
    ===============================================================================
    * PHP Update May Be Available via centmin.sh menu option 5
    * see https://community.centminmod.com/forums/18/
    ===============================================================================
    * Current PHP Version:           7.2.28
    * Latest PHP Mainline Available: 7.2.29
    ===============================================================================
    
    ===============================================================================
     Centmin Mod local code is up to date at /usr/local/src/centminmod
     no available updates at this time...
    ===============================================================================



    Continue reading...

    123.09beta01 branch
     
  2. eva2000

    eva2000 Administrator Staff Member

    48,912
    11,190
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,424
    Local Time:
    10:41 PM
    Nginx 1.21.x
    MariaDB 10.x
    example if you currently have PHP 7.3.15 installed
    Code (Text):
    ===============================================================================
    * Nginx Update May Be Available via centmin.sh menu option 4
    * see https://centminmod.com/nginx.html#nginxupgrade
    ===============================================================================
    * Current Nginx Version:           1.17.8
    * Latest Nginx Mainline Available: 1.17.9 (centminmod.com/nginxnews)
    ===============================================================================
    
    
    ===============================================================================
    * PHP Update May Be Available via centmin.sh menu option 5
    * see https://community.centminmod.com/forums/18/
    ===============================================================================
    * Current PHP Version:           7.3.15
    * Latest PHP Mainline Available: 7.3.16
    ===============================================================================
    
    ===============================================================================
     Centmin Mod local code is up to date at /usr/local/src/centminmod
     no available updates at this time...
    ===============================================================================
     
  3. eva2000

    eva2000 Administrator Staff Member

    48,912
    11,190
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +17,424
    Local Time:
    10:41 PM
    Nginx 1.21.x
    MariaDB 10.x
    whoops typo should remove word Mainline from
    Code (Text):
    Latest PHP Mainline Available
    
     
  4. cloud9

    cloud9 Premium Member Premium Member

    305
    85
    28
    Oct 6, 2015
    England
    Ratings:
    +144
    Local Time:
    1:41 PM
    1.21.5
    10.3.32
    Just spotted this, and added, nice work @eva2000