Updating PHP Versions - NCIOCPL/cgov-digital-platform GitHub Wiki
[!NOTE] This Document is a work in progress. Just getting some notes written down for now.
Acquia generally forces a switch to a new minimum version of PHP in October of the year the old minimum version goes out of support. Before we can move to a new version, we need Acquia to support new PHP version in the ACSF (or Cloud Next) ACE environments.
Steps for updating
- Local development
- Resolve any phpstan issues regarding deprecated PHP functionality.
- Update PHP version and modules in the
docker/web/Dockerfile
. - Update configuration files in
docker/web/build/php-conf
anddocker/web/runtime
.- Compare the files to the ones from the previous version and be certain to retain any customizations. (These are meant to track the configuration in the 01LIVE environment.)
- Known customizations as of this writing:
docker/web/runtime/php_apache2.ini
:memory_limit = 400M
post_max_size = 256M
upload_max_filesize = 256