Last active
June 4, 2023 18:40
-
-
Save palumbo/01ea036e159a81e0efaa1677aab61dc4 to your computer and use it in GitHub Desktop.
AWS EC2 Wordpress bootstrap script
This file contains 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 install httpd php-mysql -y | |
amazon-linux-extras install -y php7.3 | |
cd /var/www/html | |
wget https://wordpress.org/latest.tar.gz | |
tar -xzf latest.tar.gz | |
cp -r wordpress/* /var/www/html/ | |
rm -rf wordpress | |
rm -rf latest.tar.gz | |
chmod -R 755 wp-content | |
chown -R apache:apache wp-content | |
service httpd start | |
chkconfig httpd on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks bro