This script sets a LAMP Server and installs an Wordpress app in a fresh running instance with Amazon Linux 2 as OS.
1 - Install git in your server
sudo yum install git
2 - Download the repository
git clone https://github.com/sadrisco/amazonlinux2-lamp-wordpress
3 - Set the permissions to the script
sudo chmod 775 amazonlinux2-lamp-wordpress/lamp-wordpress-install.sh
4 - Run the script
./amazonlinux2-lamp-wordpress/lamp-wordpress-install.sh
5 - Just wait. When finished, you will be able to access your fresh Wordpress installation by typing your IP address on the browser :)