Created
April 10, 2018 18:45
-
-
Save mikepfeiffer/aae32bc7c7e3018e2463233542152436 to your computer and use it in GitHub Desktop.
Download and Deploy WordPress Application Code for Apache
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 | |
wget https://wordpress.org/latest.tar.gz | |
tar -xzf latest.tar.gz | |
cp -r wordpress/* /var/www/html/ |
Full version, because second line uses latest.tar.gz.
wget https://wordpress.org/wordpress-5.1.1.tar.gz
tar -xzf wordpress-5.1.1.tar.gz
cp -r wordpress/* /var/www/html/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you weren't able to get php70 in the previous step (which for whatever reason I did not see an available yum repo for), you may have to download the previous version of Wordpress if you get this message: "Your server is running PHP version 5.4.16 but WordPress 5.4 requires at least 5.6.20."
wget https://wordpress.org/wordpress-5.1.1.tar.gz