Skip to content

Instantly share code, notes, and snippets.

@hackcoderr
Created February 4, 2021 13:24
Show Gist options
  • Save hackcoderr/c8a08ad0aa8179f5ed104230ce4af3b9 to your computer and use it in GitHub Desktop.
Save hackcoderr/c8a08ad0aa8179f5ed104230ce4af3b9 to your computer and use it in GitHub Desktop.
For deploying the Wordpress on EC2 instance
#!/bin/bash
yum install php-mysqlnd php-fpm mariadb-server httpd tar curl php-json wget -y
amazon-linux-extras install php7.3
curl https://wordpress.org/latest.tar.gz --output wordpress.tar.gz
tar xf wordpress.tar.gz
cp -r wordpress /var/www/html
systemctl start httpd
systemctl enable httpd
setenforce 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment