Skip to content

Instantly share code, notes, and snippets.

@palumbo
Last active June 4, 2023 18:40
Show Gist options
  • Save palumbo/01ea036e159a81e0efaa1677aab61dc4 to your computer and use it in GitHub Desktop.
Save palumbo/01ea036e159a81e0efaa1677aab61dc4 to your computer and use it in GitHub Desktop.
AWS EC2 Wordpress bootstrap script
#!/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
Copy link

ghost commented Mar 31, 2023

thanks bro

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