Welcome to Centmin Mod Community
Register Now

Beta Branch enable DMOTD_PHPCHECK by default and guard menu 5 getphpver lookups i…

Discussion in 'Centmin Mod Github Commits' started by eva2000, Nov 20, 2026 at 5:14 AM.

  1. eva2000

    eva2000 Administrator Staff Member

    60,551
    12,627
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +19,292
    Local Time:
    12:44 AM
    Nginx 1.31.x
    MariaDB 10.x/11.4+/12.3+
    enable DMOTD_PHPCHECK by default and guard menu 5 getphpver lookups in 140.00beta01

    getphpver cached an empty PHP version list for 2 hours whenever the GitHub
    API rate-limited it, which blanked the menu 5 version lookup and the SSH
    login PHP update check.

    Changes:
    - config/motd/dmotd.sh, tools/check-for-updates.sh: DMOTD_PHPCHECK defaults
    to 'y' (new PHP version available notice); set DMOTD_PHPCHECK='n' in
    custom_config.inc to turn it off. Servers with Pushover alerts set up now
    also get PHP update alerts from check-for-updates.sh
    - config/motd/dmotd.sh, tools/check-for-updates.sh: re-download getphpver
    until it has the empty-cache fix
    - inc/php_upgrade.inc: menu 5 uses the getphpver lookup only when it
    returns X.Y.Z, otherwise it asks for the full version
    - example/custom_config.inc: document DMOTD_PHPCHECK

    Continue reading...


    140.00beta01 branch