Sélectionner vos préférences de cookies

Nous utilisons des cookies essentiels et des outils similaires qui sont nécessaires au fonctionnement de notre site et à la fourniture de nos services. Nous utilisons des cookies de performance pour collecter des statistiques anonymes afin de comprendre comment les clients utilisent notre site et d’apporter des améliorations. Les cookies essentiels ne peuvent pas être désactivés, mais vous pouvez cliquer sur « Personnaliser » ou « Refuser » pour refuser les cookies de performance.

Si vous êtes d’accord, AWS et les tiers approuvés utiliseront également des cookies pour fournir des fonctionnalités utiles au site, mémoriser vos préférences et afficher du contenu pertinent, y compris des publicités pertinentes. Pour accepter ou refuser tous les cookies non essentiels, cliquez sur « Accepter » ou « Refuser ». Pour effectuer des choix plus détaillés, cliquez sur « Personnaliser ».

PHP in AL2

Mode de mise au point
PHP in AL2 - Amazon Linux 2
Cette page n'a pas été traduite dans votre langue. Demande de traduction

AL2 currently provides two fully supported versions of the PHP programming language as part of AL2 Extras Library. Each PHP version is supported for the same time frame as upstream PHP as listed under deprecated date in List of Amazon Linux 2 Extras.

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. Documentation also exists for migrating from PHP 8.0 to 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. Combined with the documentation referenced in the previous section on migrating to PHP 8.1, and PHP 8.2, you have all of the steps needed to migrate your PHP based application to modern PHP.

The PHP project maintains a list and schedule of supported versions, along with a list of unsupported branches.

Note

When AL2023 was released, all 7.x and 5.x versions of PHP were not supported by the PHP community, and were not included as options in AL2023.

Rubrique suivante :

Python in AL2

Rubrique précédente :

Perl
ConfidentialitéConditions d'utilisation du sitePréférences de cookies
© 2025, Amazon Web Services, Inc. ou ses affiliés. Tous droits réservés.