PHP 8.6
EasyEngine now supports PHP 8.6, and the default PHP version for new WordPress and PHP sites (and for --php=latest) moves from 8.4 to 8.5. Existing sites keep their PHP version. PHP 8.6 is opt-in:
ee site create example.com --type=wp --php=8.6
ee site update example.com --php=8.6The new easyengine/php8.6 image is downloaded the first time a site uses it. Check your theme and plugins before moving a production site, and take a backup first (ee site backup example.com).
The PHP 8.6 image differs from the 8.5 one in a few ways:
- memcached, redis and apcu are built from upstream commits. Their latest releases don't build on PHP 8.6, so the image uses tested commits from each project's development branch. The image moves to the official releases once they support PHP 8.6.
- Session cookies default to
SameSite=Lax. This is PHP 8.6's new default forsession.cookie_samesite, and EasyEngine keeps it. Applications that rely on a session cookie being sent on cross-site requests (for example a cross-site POST back into the site) needsession.cookie_samesite = Nonetogether withsession.cookie_secure = Onin the site'scustom.ini.
Upgrade notes
PHP 8.3 and 8.5 sites are recreated
The PHP 8.5 image changes (New Relic agent), so ee cli update recreates each enabled site on PHP 8.5 on the new image, one site at a time, the same way as in v4.14.2: a temporary support container keeps serving each site while the image is downloaded and its containers are switched, and requests can stall for a few seconds at each switch. Disabled sites start on the new image when you enable them. The PHP version itself doesn't change (8.5.13). Enabled sites on PHP 8.3 are recreated the same way, since the PHP 8.3 image changes too (imagick, see below); PHP stays 8.3.37. Sites on other PHP versions and the global services aren't recreated. EasyEngine images that no container uses any more are removed afterwards, including the previous PHP 8.3 and 8.5 images.
Stricter --php values
ee site create and ee site update now accept only the listed PHP versions, written exactly as listed (8.5, not 8.50, 08.5 or 8):
ee site createasks whether to continue with the nearest supported version (for exampleEEv4 does not support PHP 8.10 yet. Continue with PHP 8.5?);--yesaccepts it for WordPress sites. Before, such values were stored as given and the create failed later at the image download.ee site updaterejects them (Invalid value specified for 'php') before it changes anything.
WordPress on PHP 7.3 and older
The current WordPress release requires PHP 7.4 or newer, so ee site create --type=wp with --php=7.3, 7.2, 7.0 or 5.6 no longer succeeds: the WordPress download fails and the create cleans up after itself. This comes from WordPress, not from this release. Existing sites on those versions keep working, and PHP sites (--type=php) can still be created on them. PHP 7.3 and older have been end of life for years; move such sites to a supported version.
Docker image updates
| Image | Before | After | Change |
|---|---|---|---|
| easyengine/php8.6 | – | v4.15.0 | New: PHP 8.6.0 (EasyEngine/dockerfiles#385); imagick reports its version, so WordPress uses Imagick (AVIF/HEIC uploads) (EasyEngine/dockerfiles#394) |
| easyengine/php8.5 | v4.14.2 | v4.15.0 | New Relic PHP agent 12.13.0.43 (EasyEngine/dockerfiles#392); imagick now reports its version, so WordPress uses Imagick again (AVIF/HEIC uploads) (EasyEngine/dockerfiles#394); PHP 8.5.13 unchanged |
| easyengine/php8.3 | v4.14.2 | v4.15.0 | imagick now reports its version, so WordPress uses Imagick again (AVIF/HEIC uploads) (EasyEngine/dockerfiles#394); PHP 8.3.37 unchanged |
The PHP images are now checked in CI for missing extensions and startup warnings before they're published (EasyEngine/dockerfiles#390). All other images are unchanged from v4.14.2.
What's Changed
- chore(release): prepare v4.15.0 #1972 @mrrobot47
- feat(php): add the easyengine/php8.6 image #1971 @mrrobot47
- chore(images): update php8.3 to v4.15.0 #1974 @mrrobot47
- feat(php): add PHP 8.6 to site update EasyEngine/site-command#540 @mrrobot47
- fix(migration): pin existing latest-PHP sites to the version they run EasyEngine/site-command#541 @mrrobot47
- feat(php): add PHP 8.6 and make 8.5 the default for new WordPress sites EasyEngine/site-type-wp#254 @mrrobot47
- feat(php): add PHP 8.6 and make 8.5 the default for new PHP sites EasyEngine/site-type-php#126 @mrrobot47
- fix(php): store the concrete version for --php=latest EasyEngine/site-type-wp#255 @mrrobot47
- fix(php): store the concrete version for --php=latest EasyEngine/site-type-php#127 @mrrobot47
- feat(php): add the PHP 8.6 image EasyEngine/dockerfiles#385 @mrrobot47
- ci(php): fail the image build when an expected PHP module is missing EasyEngine/dockerfiles#390 @mrrobot47
- feat(php): enable the New Relic agent on PHP 8.5 EasyEngine/dockerfiles#392 @mrrobot47
- fix(php): make imagick report its version on PHP 8.3, 8.5 and 8.6 EasyEngine/dockerfiles#394 @mrrobot47
- test(behat): seed the latest PHP row instead of creating it EasyEngine/dash-command#5 @mrrobot47