Join the community today
Register Now

Stable Branch add timeouts to the SSH login PHP version check in 132.00stable

Discussion in 'Centmin Mod Github Commits' started by eva2000, Nov 20, 2026 at 8:54 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+
    add timeouts to the SSH login PHP version check in 132.00stable


    DMOTD_PHPCHECK now defaults to 'y', so every SSH login can run the PHP
    version check. Its downloads had no timeouts and it could run a yum install
    at login.

    Changes:
    - config/motd/dmotd.sh, tools/check-for-updates.sh
    get_latest_php_version(): download getphpver to a temp file with
    wget -T 10 -t 1 and install it only if it has the refresh_versions fix,
    no yum install of jq, run getphpver under timeout 20
    - phpver_checker(): add --max-time 15 to the php.net download check

    Continue reading...

    132.00stable branch