Skip to content

Instantly share code, notes, and snippets.

@mrpharderwijk
Last active February 20, 2019 10:03
Show Gist options
  • Save mrpharderwijk/d4702d02f7ce8b2f224390b808738afb to your computer and use it in GitHub Desktop.
Save mrpharderwijk/d4702d02f7ce8b2f224390b808738afb to your computer and use it in GitHub Desktop.
Install wordpress backend
  1. Create a database on server

  2. Download Worpdress

wp core download --allow-root
  1. Configure Wordpress
wp core config --dbname=[dbName] --dbuser=[dbUser] --dbpass=[dbPass] --dbhost=[dbHost] --allow-root
  1. Install Wordpress
wp core install --url=[siteUrl] --title=[siteTitle] --admin_user=[adminUser] --admin_password=[adminPass] --admin_email=[adminEmail] --allow-root
  1. Change dir to theme folder wp-content/themes and clone theme from github
git clone [email protected]:rocketsciencebv/[repo].git
  1. Activate theme
wp theme activate [themeName] --allow-root
  1. Delete standard themes
wp theme delete twentyfifteen twentysixteen twentyseventeen --allow-root
  1. Delete standard plugins
wp plugin delete akismet hello --allow-root
  1. Install Plugins
wp plugin install --activate wordpress-importer --allow-root
git clone [email protected]:rocketsciencebv/advanced-custom-fields-pro.git ../../plugins/advanced-custom-fields-pro
git clone [email protected]:rocketsciencebv/advanced-custom-fields-wpcli.git ../../plugins/advanced-custom-fields-wpcli
wp plugin activate advanced-custom-fields-pro advanced-custom-fields-wpcli --allow-root

wp user create --path=${wpdir} editor [email protected] --user_pass=editor --role=editor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment