---

How to Install PHP 7.2/7.3/7.4 or 8.0 on Amazon Linux 2

While working with an application, I needed PHP 7.4 and 8.0 on Amazon Linux 2 EC2 and Lightsail instance. Here is how to install PHP version 7.2/7.3/7.4 or 8.0 on Amazon Linux 2 using the yum command.

Get the Free Newsletter!

Subscribe to Developer Insider for top news, trends, & analysis