If you like my tips, buy me a coffee
I believe that it is my responsibility to transfer the knowledge I gathered through the years of my experience with AWS
Launch EC2 Amazon Linux 2 AMI (HVM), SSD Volume Type 64bit (x86)
sudo yum install \
https://repo.ius.io/ius-release-el7.rpm \
https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install --enablerepo=ius-archive php56u
sudo yum install --enablerepo=ius-archive php56u-xmlrpc php56u-soap php56u-gd
sudo systemctl start httpd
sudo systemctl enable httpd
sudo chown -R ec2-user:apache /var/www
sudo chmod 2775 /var/www && find /var/www -type d -exec sudo chmod 2775 {} \;
sudo find /var/www -type f -exec sudo chmod 0664 {} \;
sudo yum install --enablerepo=ius-archive mariadb-server
sudo yum install --enablerepo=ius-archive php56u-mysqlnd
sudo service mariadb start
sudo systemctl enable mariadb
sudo mysql_secure_installation