PHP in AL2
AL2 currently provides two fully supported versions of the PHP
For information about how to use AL2 Extras to install application and software updates on your instances, see AL2 Extras Library.
To assist migration to AL2023, both PHP 8.1 and 8.2 are available on AL2 and AL2023.
Note
AL2 includes PHP 7.1, 7.2, 7.3, and 7.4 in
amazon-linux-extras
. All of these Extras are EOL and are not guaranteed
to get any additional security updates.
To find out when each version of PHP is deprecated in AL2, see the List of Amazon Linux 2 Extras.
Migrating from earlier PHP 8.x versions
The upstream PHP community put together
comprehensive migration documentation for moving to PHP 8.2 from
PHP 8.1
AL2 includes PHP 8.0, 8.1, and 8.2 in
amazon-linux-extras
that enables an efficient upgrade path to AL2023. To find out when each version of PHP is deprecated in AL2, see the
List of Amazon Linux 2 Extras.
Migrating from PHP 7.x versions
The upstream PHP community put together comprehensive migration documentation for moving to
PHP 8.0 from PHP 7.4
The PHP