'What version of lamp-mariadb and php should I install on WordPress instance?

I am deploying a MySQL database with AWS RDS and a WordPress site on an EC2 instance. I've found this guide on how to do so: Deploy WordPress with Amazon RDS.

I followed the guide successfully but need to upgrade to the latest PHP version. The guide has me install these dependencies: sudo amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2

What are the latest versions of the LAMP stack and PHP to install on my new WordPress deployment?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source