github EasyEngine/easyengine v4.15.0
EasyEngine v4.15.0

one hour ago

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.6

The 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 for session.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) need session.cookie_samesite = None together with session.cookie_secure = On in the site's custom.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 create asks whether to continue with the nearest supported version (for example EEv4 does not support PHP 8.10 yet. Continue with PHP 8.5?); --yes accepts it for WordPress sites. Before, such values were stored as given and the create failed later at the image download.
  • ee site update rejects 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

Don't miss a new easyengine release

NewReleases is sending notifications on new releases.