Skip to content

Instantly share code, notes, and snippets.

@HughP
Forked from bugsysop/wordpress_install.sh
Created February 6, 2017 19:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HughP/65da2a576a6cfe696cea9dab798c8b73 to your computer and use it in GitHub Desktop.
Save HughP/65da2a576a6cfe696cea9dab798c8b73 to your computer and use it in GitHub Desktop.
Script for installing the latest version of WordPress plus a number of useful plugins.
#!/bin/sh
#
# Instant Wordpress!
# ------------------
# Script for installing the latest version of WordPress plus a number of useful plugins.
# Source : https://github.com/snaptortoise/wordpress-quick-install
#
#
# Latest version of WP
echo "Fetching WordPress...";
wget --quiet http://wordpress.org/latest.zip;
unzip -q latest.zip;
# Sitemap Generator
echo "Fetching Google Sitemap Generator plugin...";
wget --quiet http://downloads.wordpress.org/plugin/google-sitemap-generator.zip;
unzip -q google-sitemap-generator.zip;
mv google-sitemap-generator wordpress/wp-content/plugins/
# Secure WordPress
echo "Fetching Secure WordPress plugin...";
wget --quiet http://downloads.wordpress.org/plugin/secure-wordpress.zip;
unzip -q secure-wordpress.zip;
mv secure-wordpress wordpress/wp-content/plugins/
# Image Widgets (Why isn't this standard?)
echo "Fetching Image Widget plugin...";
wget --quiet http://downloads.wordpress.org/plugin/image-widget.zip;
unzip -q image-widget.zip;
mv image-widget wordpress/wp-content/plugins/
# Super-cache
echo "Fetching Super Cache plugin...";
wget --quiet http://downloads.wordpress.org/plugin/wp-super-cache.zip;
unzip -q wp-super-cache.zip;
mv wp-super-cache wordpress/wp-content/plugins/
# Regenerate Thumbnails (good for when you need to make custom sizes)
echo "Fetching Regenerate Thumbnails...";
wget --quiet http://downloads.wordpress.org/plugin/regenerate-thumbnails.zip
unzip -q regenerate-thumbnails.zip
mv regenerate-thumbnails wordpress/wp-content/plugins/
# WordPress Importer
echo "Fetching WordPress Importer...";
wget --quiet http://downloads.wordpress.org/plugin/wordpress-importer.zip
unzip -q wordpress-importer.zip
mv wordpress-importer wordpress/wp-content/plugins/
# Cleanup
echo "Cleaning up temporary files and directories...";
rm *.zip
# Move stuff into current directory
mv wordpress/* .;
rm -rf wordpress;
# Disable the built-in file editor because it's a hacking vector and I hate it
echo "Disabling file editor...";
echo "
/* Disable the file editor */
define(‘DISALLOW_FILE_EDIT’, true);" >> wp-config-sample.php
echo "Done!";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment