Last active
April 21, 2022 15:02
-
-
Save CodingLink/400f076acd9c4f5c9083498c5a088978 to your computer and use it in GitHub Desktop.
AWS Academy Cloud Architecting course capstone project start template.
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 -ex | |
| sudo yum -y update | |
| amazon-linux-extras install -y lamp-mariadb10.2-php7.2 php7.2 | |
| sudo yum install -y httpd mariadb-server | |
| sudo chkconfig httpd on | |
| sudo service httpd start | |
| cd /home/ec2-user | |
| sudo wget https://aws-tc-largeobjects.s3-us-west-2.amazonaws.com/ILT-TF-200-ACACAD-20-EN/capstone-project/Countrydatadump.sql | |
| sudo chown ec2-user:ec2-user Countrydatadump.sql | |
| cd /var/www/html | |
| sudo wget https://aws-tc-largeobjects.s3-us-west-2.amazonaws.com/ILT-TF-200-ACACAD-20-EN/capstone-project/Example.zip | |
| sudo unzip Example.zip -d /var/www/html/ | |
| sudo chmod 755 Example | |
| sudo sed -i "2i date.timezone = \"America/New_York\" " /etc/php.ini | |
| sudo service httpd restart | |
| cd /var/www/html/Example | |
| sudo mv * ../ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment