Join the community today
Become a Member

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

    52,749
    12,077
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,604
    Local Time:
    5:36 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    52,749
    12,077
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,604
    Local Time:
    5:36 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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

    52,749
    12,077
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,604
    Local Time:
    5:36 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    whoops typo should remove word Mainline from
    Code (Text):
    Latest PHP Mainline Available
    
     
  4. cloud9

    cloud9 Premium Member Premium Member

    425
    117
    43
    Oct 6, 2015
    England
    Ratings:
    +217
    Local Time:
    8:36 AM
    1.25.3
    10.6.x
    Just spotted this, and added, nice work @eva2000