Skip to content

Instantly share code, notes, and snippets.

@amcginlay
Last active February 27, 2024 12:07
Show Gist options
  • Save amcginlay/f054a1867ce598979785b651c4733b0c to your computer and use it in GitHub Desktop.
Save amcginlay/f054a1867ce598979785b651c4733b0c to your computer and use it in GitHub Desktop.
AWS EC2 Wordpress
#!/bin/bash
yum update -y
yum install httpd php php-mysql -y
cd /var/www/html
echo "healthy" > healthy.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
wget https://s3.amazonaws.com/bucketforwordpresslab-donotdelete/htaccess.txt
mv htaccess.txt .htaccess
chkconfig httpd on
service httpd start
@priyatami
Copy link

HTTP request sent, awaiting response... 404 Not Found

@099912
Copy link

099912 commented Feb 27, 2024

HTTP request sent, awaiting response... 404 Not Found

did you find any solution ? I am getting same error

@amcginlay
Copy link
Author

amcginlay commented Feb 27, 2024

I can see that the S3 bucket (bucketforwordpresslab-donotdelete) was either deleted or repermissioned. It was never mine in the first place so I can't be sure what was in it. It's referenced by many articles online so it's likely others out there are also seeking a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment