選取您的 Cookie 偏好設定

我們使用提供自身網站和服務所需的基本 Cookie 和類似工具。我們使用效能 Cookie 收集匿名統計資料,以便了解客戶如何使用我們的網站並進行改進。基本 Cookie 無法停用,但可以按一下「自訂」或「拒絕」以拒絕效能 Cookie。

如果您同意,AWS 與經核准的第三方也會使用 Cookie 提供實用的網站功能、記住您的偏好設定,並顯示相關內容,包括相關廣告。若要接受或拒絕所有非必要 Cookie,請按一下「接受」或「拒絕」。若要進行更詳細的選擇,請按一下「自訂」。

PHP in AL2

焦點模式
PHP in AL2 - Amazon Linux 2
此頁面尚未翻譯為您的語言。 請求翻譯

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.

下一個主題:

Python in AL2

上一個主題:

Perl
隱私權網站條款Cookie 偏好設定
© 2025, Amazon Web Services, Inc.或其附屬公司。保留所有權利。