Upgrading without breaking the site.
BEFORE CHANGING
Check your application's stated compatibility Check every dependency's compatibility Read the deprecation notices in your current error log, which predict what will break Take a backup
THE PROCEDURE
- Test on staging first, with the new version.
- Exercise every part of the application.
- Read the error log for deprecations, warnings and fatal errors.
- Fix what appears.
- Only then change production.
CHANGING IT
cPanel > MultiPHP Manager. The change is immediate and per domain.
WHAT USUALLY BREAKS
Functions removed in the newer version Stricter type handling causing errors where values were previously coerced Changed default behaviour Old dependencies not updated for the new version
IF IT BREAKS
Switch back immediately from the same screen, then fix the code before trying again.
MISSING EXTENSIONS
A new PHP version has its own extension selections. Enable what your application needs under Select PHP Version.
WHY DO IT
Newer versions are substantially faster, and unsupported versions receive no security patches.