Skip to content

Instantly share code, notes, and snippets.

@mikepfeiffer
Created April 10, 2018 18:45
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save mikepfeiffer/aae32bc7c7e3018e2463233542152436 to your computer and use it in GitHub Desktop.
Save mikepfeiffer/aae32bc7c7e3018e2463233542152436 to your computer and use it in GitHub Desktop.
Download and Deploy WordPress Application Code for Apache
#!/bin/bash
wget https://wordpress.org/latest.tar.gz
tar -xzf latest.tar.gz
cp -r wordpress/* /var/www/html/
@nicholaschaung
Copy link

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

@vishagar81
Copy link

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