Feature Request: Check minimum required PHP version before FOG dev-branch upgrades
-
Hello,
I would like to suggest improving PHP version compatibility checks during FOG installation and upgrades, especially when updating to the latest dev-branch.
On several occasions after upgrading FOG development versions, I experienced issues such as:
- The Management Portal login stopped working.
- Newly introduced features produced PHP runtime errors.
- The installer completed successfully without warning that the installed PHP version might not meet the requirements of the updated FOG code.
Not all of these errors were necessarily caused by an outdated PHP version, but better compatibility checks would help prevent and diagnose them.
Suggested improvements:
- Check the installed PHP version before upgrading FOG.
- Define the minimum required PHP version for each FOG release or development build.
- Verify both PHP CLI and PHP-FPM versions.
- Check required PHP extensions and their availability.
- Warn if PHP is too old or if the installed PHP version is not yet supported.
- Perform these checks BEFORE replacing application files or modifying the database.
- Stop the upgrade if a required PHP dependency is missing, unless an explicit override is provided.
- After upgrading, check the Management Portal, login page, HTTP 500 errors and PHP fatal errors.
- Provide a pre-upgrade compatibility check, for example:
./installfog.sh --check-requirements
Example warning:
FOG PHP Compatibility Check
Installed PHP: 8.x
Minimum PHP required: X.Y
Status: Upgrade blocked
Please upgrade PHP before continuing.It would also be useful to display the required PHP version in the installer summary and documentation.
The goal is to prevent situations where FOG reports “Setup complete” but the Management Portal or newly introduced functionality fails afterward.
Could this improvement be considered for a future FOG 1.6 dev-branch update?
Thank you for your continued work on FOG Project!