>
Upcoming News Article
Version Changes — PHP Programming Language
Amazon Linux 2(AL2) currently provides two versions of the PHP programming language, each supported for the same amount of time. The versions of PHP available in default Amazon Linux 2 are much older. Documentation also exists for migrating from PHP 8.0 to 8.1.
AL2 includes PHP 8.0, 8.1, and 8.2 in the amazon-linux-extras repository.
The current version of PHP installed is 7.4. You can update this version to 8.0 by following these steps:
- Add the amazon-linux-extras repository to your system.
- Install the PHP 8.0 package.
- Configure your web server to use PHP 8.0.