Created
February 4, 2021 13:24
-
-
Save hackcoderr/c8a08ad0aa8179f5ed104230ce4af3b9 to your computer and use it in GitHub Desktop.
For deploying the Wordpress on EC2 instance
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 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