This is an old revision of the document!
amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2
sudo yum install -y httpd mariadb-server
systemctl enable httpd
systemctl enable mariadb
systemctl start httpd
systemctl start mariadb
mysqldump -u root -p –all-databases > web.dump
mysql -u root -p < web.dump
use mysql
then set password for 'root'@'localhost' = PASSWORD('XYZ');
mkdir /mnt/web/
''RemoveHandler .html .htm'' ''AddType application/x-httpd-php .php .html .htm'' ''AddHandler server-parsed .html'' ''AddHandler server-parsed .shtml'' ''AddHandler server-parsed .htm'' ''php_flag display_errors on'' ''php_value error_reporting 2039''