Last active
August 29, 2015 14:10
-
-
Save panbanda/f14885421729a77153f6 to your computer and use it in GitHub Desktop.
Wordpress speedy installer.
This file contains hidden or 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
# Install wp-cli.org | |
# Use: bash -c "$(curl -fsSL https://gist.githubusercontent.com/jylinman/f14885421729a77153f6/raw/wp-install.sh)" | |
echo "Database name: " | |
read db_name | |
echo "Database username: " | |
read db_user | |
echo "Database password: " | |
read db_pass | |
echo "Database host: " | |
read db_host | |
# Ask for site information | |
echo "Site URL: " | |
read site_url | |
echo "Site Title: " | |
read site_title | |
echo "Admin username: " | |
read admin_user | |
echo "Admin password: " | |
read admin_pass | |
echo "Admin email: " | |
read admin_email | |
# Install core application | |
wp core download | |
wp core config --dbname="$db_name" --dbuser="$db_user" --dbpass="$db_pass" --dbhost="$db_host" | |
wp core install --url="$site_url" --title="$site_title" --admin_user="$admin_user" --admin_password="$admin_pass" --admin_email="$admin_email" | |
# Install common plugins | |
wp plugin install addthis | |
wp plugin install regenerate-thumbnails | |
wp plugin install wordpress-seo | |
wp plugin install wp-optimize | |
wp plugin install better-wp-security | |
wp plugin install w3-total-cache | |
# Remove default plugins | |
wp plugin delete hello |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment