We perform a test of the LAMP server. Create a PHP file.
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

Verify the installed packages again with the following command:
sudo dnf list installed httpd mariadb-server php-mysqlnd

Delete the file phpinfo.php
rm /var/www/html/phpinfo.php
