Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #Get variables
- echo It looks like you want to install wordpress! Great! Lets get some info from you first.
- echo What is the Domain Name?
- read domain
- echo What is the Title of the site?
- read title
- echo What do you want to use for the wordpress admin username?
- read wpUser
- echo What about the wordpress admin pass?
- read wpPass
- echo What about the admin user email address?
- read wpEmail
- echo What is the database name?
- read dbName
- echo What is the database username? Note, you will need the cpanel username example svmadmin_dbadmin
- read dbUser
- echo What is the database user password?
- read dbPass
- echo What theme would you like to use?
- read theme
- #install wordpress
- echo "---------------Installing Wordpress----------------"
- wp core download
- wp core config --dbname="$dbName" --dbuser="$dbUser" --dbpass="$dbPass" --dbprefix=wp_ --dbhost=localhost
- wp core install --url="$domain" --title=\""$title"\” --admin_user="$wpUser" --admin_password="$wpPass" --admin_email="$wpEmail"
- echo "---------------Installing plugins and themes---------------"
- #install and activate plugins
- wp plugin install custom-css-js code-snippets siteorigin-panels Wordpress-seo wordfence enable-media-replace jetpack easy-fancybox woocommerce google-analytics-dashboard-for-wp image-watermark gravityformscli --activate
- #install and activate gravity forms
- wp gf install --key=39743eb28a589c3730896b8ff3ff281a
- wp plugin activate gravityforms
- wp theme install $theme --activate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement