Skip to content

Instantly share code, notes, and snippets.

@ashokveerasamy
Forked from amcginlay/wordpress.sh
Created May 28, 2023 06:46
Show Gist options
  • Save ashokveerasamy/2dea24c0290922f212f995295c148dbd to your computer and use it in GitHub Desktop.
Save ashokveerasamy/2dea24c0290922f212f995295c148dbd 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment