Guest User

Untitled

a guest
Apr 25th, 2018
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. 1. Create a database on server
  2.  
  3. 2. Download Worpdress
  4. ```
  5. wp core download --allow-root
  6. ```
  7.  
  8. 3. Configure Wordpress
  9. ```
  10. wp core config --dbname=[dbName] --dbuser=[dbUser] --dbpass=[dbPass] --dbhost=[dbHost] --allow-root
  11. ```
  12.  
  13. 4. Install Wordpress
  14. ```
  15. wp core install --url=[siteUrl] --title=[siteTitle] --admin_user=[adminUser] --admin_password=[adminPass] --admin_email=[adminEmail] --allow-root
  16. ```
  17.  
  18. 5. Change dir to theme folder `wp-content/themes` and clone theme from github
  19. ```
  20. git clone git@github.com:rocketsciencebv/[repo].git
  21. ```
  22.  
  23. 6. Activate theme
  24. ```
  25. wp theme activate [themeName] --allow-root
  26. ```
  27.  
  28. 7. Delete standard themes
  29. ```
  30. wp theme delete twentyfifteen twentysixteen twentyseventeen --allow-root
  31. ```
  32.  
  33. 8. Delete standard plugins
  34. ```
  35. wp plugin delete akismet hello --allow-root
  36. ```
  37.  
  38. 9. Install Plugins
  39. ```
  40. wp plugin install --activate wordpress-importer --allow-root
  41. git clone git@github.com:rocketsciencebv/advanced-custom-fields-pro.git ../../plugins/advanced-custom-fields-pro
  42. git clone git@github.com:rocketsciencebv/advanced-custom-fields-wpcli.git ../../plugins/advanced-custom-fields-wpcli
  43. wp plugin activate advanced-custom-fields-pro advanced-custom-fields-wpcli --allow-root
  44. ```
  45.  
  46. wp user create --path=${wpdir} editor editor@example.com --user_pass=editor --role=editor
Add Comment
Please, Sign In to add comment