-
Notifications
You must be signed in to change notification settings - Fork 0
Home
DonMVB edited this page Sep 3, 2020
·
5 revisions
Welcome to the aws wiki!
I've collected a few bootstap scripts along the way.
Note: Requires that the instance be granted a S3_admin type role
#!/bin/bash
yum update -y
yum install httpd -y
service httpd start
chkconfig httpd on
cd /var/www/html
echo "<html><h1>Hello Cloud Gurus Welcome To My Webpage</h1></html>" > index.html
aws s3 mb s3://YOURBUCKETNAMEHERE
aws s3 cp index.html s3://YOURBUCKETNAMEHERE
Note: Installing a much older version of WordPress is not the best idea. This Bootscrip script was created because the Limux AMI yum update would not let users install php72 (Sept 2020)
#!/bin/bash
yum install httpd php php-mysql -y
cd /var/www/html
wget https://wordpress.org/wordpress-5.1.1.tar.gz
tar -xzf wordpress-5.1.1.tar.gz
cp -r wordpress/* /var/www/html/
rm -rf wordpress
rm -rf wordpress-5.1.1.tar.gz
chmod -R 755 wp-content
chown -R apache:apache wp-content
service httpd start
chkconfig httpd on