Created
August 24, 2019 07:34
-
-
Save pictolearn/9b4197a897e5dbdb68b62b71b8ebcc68 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
yum update -y | |
amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2 | |
yum install -y httpd mariadb-server | |
systemctl start httpd | |
systemctl enable httpd | |
usermod -a -G apache ec2-user | |
chown -R ec2-user:apache /var/www | |
chmod 2775 /var/www | |
find /var/www -type d -exec chmod 2775 {} \; | |
find /var/www -type f -exec chmod 0664 {} \; | |
echo "<?php phpinfo(); ?>" > /var/www/html/phpinfo.php |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment