echo "<?php phpinfo(); ?>" > /var/www/html/phpinfo.php
In the EC2 interface
Paste the following command into the browser:
http://my.public.dns.amazonaws.com/phpinfo.php
sudo yum list installed httpd mariadb-server php-mysqlnd
rm /var/www/html/phpinfo.php