Go through this amazon link http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Replace EMAIL/API_KEY/ZONE_ID with your details. | |
// Zone ID is on the dashboard for the domain in the bottom right. | |
// Api keys are generated from the account settings. You must give cache purge permissions | |
// Place this script on your webserver and point a Github Webhook at it, and you'll clear | |
// the Cloudflare cache every time you do a push to GH. | |
try { | |
$head = []; | |
$head[] = 'Content-Type: application/json'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Amazon Linux 2 ## | |
sudo yum update -y | |
sudo amazon-linux-extras install lamp-mariadb10.2-php7.2 nginx1.12 | |
sudo yum install -y mariadb-server | |
sudo systemctl enable php-fpm | |
sudo systemctl enable nginx | |
sudo systemctl enable mariadb |