Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

On the Move - Migrations Made Simple

1,740 views

Published on

Site migrations can be a scary thing with so many things to do and think about. We’re going to briefly talk about the progress of migrating a site from WordPress.com to a self-hosted install of WordPress. After that we’ll discuss the process of moving a self-hosted WordPress website from one host to another host. As part of the workshop’s hands-on portion we’ll experience the migration of a WordPress website from a hosted public server to your private laptop or desktop.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

On the Move - Migrations Made Simple

  1. 1. On The Move Migrations Made Simple Jonathan Perlman - @jpurpleman WordCamp Montreal 2016 http://jpurpleman.ca/
  2. 2. What’s covered… July 18, 2016WordCamp Montreal • Wordpress.com to self-hosted • DNS • The development stack • Transferring files and data • Transferring via duplicator • Transferring data many times • Check your site • Resources
  3. 3. About me Developer 14 years Teacher 9 years Trekie Since ST:TNG July 18, 2016WordCamp Montreal
  4. 4. July 18, 2016WordCamp Montreal ENGAGE!
  5. 5. WordPress.com to WordPress.org July 18, 2016WordCamp Montreal
  6. 6. What’s the difference? July 18, 2016WordCamp Montreal WordPress.org / Self Hosted WordPress.com Cost Variable, $5 - $20,000 Free Themes Your choice, no restrictions Limited customizations Plugins Your choice, no restrictions Limited, no uploading Control Full control Limited control Maintenance You manage / You pay for it Automattic does it for you Backups You manage / You pay for it Automattic does it for you SSL Security You manage / You pay for it Automattic gives it for you
  7. 7. Method Export Import July 18, 2016WordCamp Montreal
  8. 8. Export July 18, 2016WordCamp Montreal
  9. 9. Export July 18, 2016WordCamp Montreal
  10. 10. Import July 18, 2016WordCamp Montreal
  11. 11. Import July 18, 2016WordCamp Montreal
  12. 12. DNS Domain Name System July 18, 2016WordCamp Montreal
  13. 13. Overview July 18, 2016WordCamp Montreal
  14. 14. Change your DNS • Modify as Administrator • Windows o c:windowssystem32driversetchosts • Apple o /etc/hosts • http://www.howtogeek.com/howto/27350/ beginner-geek-how-to-edit-your-hosts-file/ • https://www.tekrevue.com/tip/edit-hosts-file-mac-os-x/ • https://www.whatsmydns.net/ July 18, 2016WordCamp Montreal
  15. 15. Windows July 18, 2016WordCamp Montreal • Using the Windows Logo use the Start Menu / Screen and search for Notepad • Right click Notepad and “Run as Administrator” c:windowssystem32driversetchosts
  16. 16. Adding the entry July 18, 2016WordCamp Montreal
  17. 17. Apple • Use the app called GasMask from Clockwise • Download o http://clockwise.ee/ • Tutorial o http://www.gilsmethod.com/how-to-edit-hosts- files-in-mac-os-x-without-the-headaches July 18, 2016WordCamp Montreal
  18. 18. Transferring Files and Data July 18, 2016WordCamp Montreal
  19. 19. What are we moving? PHP / HTML / CSS WordPress Core Plugins Themes JPG, PNG, GIF, DOC, PDF Media POSTS PAGES SQL Database July 18, 2016WordCamp Montreal
  20. 20. How to migrate it? With WordPress Plugins Without WordPress July 18, 2016WordCamp Montreal • Duplicator • Backup Buddy • WP Migrate DB Pro • File Transfer Program o FileZilla o CyberDuck o Transmit • Database client o phpMyAdmin o HiediSQL
  21. 21. File Transfer • Don’t use FTP! • Start SFTP program • Download the files from the web accessible area o htdocs, public_html, www • Put the files in the local hard drive o Desktop o c:wampwwwwordpress July 18, 2016WordCamp Montreal
  22. 22. FTP – Upload and Download July 18, 2016WordCamp Montreal
  23. 23. Confirm Authenticity July 18, 2016WordCamp Montreal
  24. 24. Database • phpMyAdmin, HeidiSQL, Navicat, MySql Workbench July 18, 2016WordCamp Montreal
  25. 25. July 18, 2016WordCamp Montreal
  26. 26. July 18, 2016WordCamp Montreal
  27. 27. July 18, 2016WordCamp Montreal
  28. 28. Configure wp-config.php July 18, 2016WordCamp Montreal
  29. 29. Configure wp-config.php • Rename wp-config-sample.php to wp-config.php • Edit wp-config.php with NotePad++, by right clicking the file. • Change lines 23, 26, 29 /** The name of the database for WordPress */ define('DB_NAME', 'wordpress'); /** MySQL database username */ define('DB_USER', 'root'); /** MySQL database password */ define('DB_PASSWORD', ''); /** MySQL hostname */ define('DB_HOST', 'localhost'); July 18, 2016WordCamp Montreal
  30. 30. Change WordPress Location July 18, 2016WordCamp Montreal • https://interconnectit.com/products/ search-and-replace-for-wordpress-databases/
  31. 31. The Development Stack 7/20/2016EQ WordPress Advanced 31
  32. 32. Installation • Text Editor o Notepad – Included in Windows o Notepad++ - https://notepad-plus-plus.org/ o Sublime Text 3 - http://www.sublimetext.com/3 o NetBeans - https://netbeans.org/ o PHP Storm - https://www.jetbrains.com/phpstorm/ • Web Browser o Internet Explorer o Firefox o Chrome o Safari o Opera 7/20/2016EQ WordPress Advanced 32
  33. 33. Stack Installation • LAMP, MAMP, WAMP, XAMP o Linux, Macintosh, Windows, * o Apache o MySQL o PHP • Windows o Wamp Server - http://www.wampserver.com/ • Mac o MAMP - https://www.mamp.info/en/ • Windows or Mac o Desktop Server - https://serverpress.com/ 7/20/2016EQ WordPress Advanced 33
  34. 34. Using WampServer • The “www” directory will be automatically created o usually c:wampwww) • Create a subdirectory in “www” and put your PHP files inside • Click on the “localhost” link in the WampSever menu • Or • Open your internet browser and go to the URL : http://localhost/ 7/20/2016EQ WordPress Advanced 34
  35. 35. Using WampServer • With a left click on WampServer’s icon, you will be able to: o manage your Apache and MySQL services o Switch services online / offline o install and switch Apache, MySQL and PHP releases o manage your servers settings o access your logs o access your settings files o create alias • With a right click: o change WampServer’s menu language o Access http://www.wampserver.com 7/20/2016EQ WordPress Advanced 35
  36. 36. Transfer Via Duplicator July 18, 2016WordCamp Montreal
  37. 37. http://wpcourse.dawsoncollege.qc.ca/##### July 18, 2016WordCamp Montreal
  38. 38. Install Duplicator July 18, 2016WordCamp Montreal
  39. 39. Create New July 18, 2016WordCamp Montreal
  40. 40. Create New July 18, 2016WordCamp Montreal
  41. 41. Storage Config July 18, 2016WordCamp Montreal
  42. 42. Archive Config July 18, 2016WordCamp Montreal
  43. 43. Installer Config July 18, 2016WordCamp Montreal
  44. 44. Scan Complete July 18, 2016WordCamp Montreal
  45. 45. Building Package July 18, 2016WordCamp Montreal
  46. 46. Package Complete July 18, 2016WordCamp Montreal
  47. 47. See downloaded files July 18, 2016WordCamp Montreal
  48. 48. Create wordpress folder July 18, 2016WordCamp Montreal
  49. 49. Login to the database • Go to http://localhost/phpmyadmin July 18, 2016WordCamp Montreal
  50. 50. Create a new database 1 Create a New database 2 Give the database a name: wordpress o Lowercase o No spaces – use underscores o No special characters July 18, 2016WordCamp Montreal
  51. 51. install.php July 18, 2016WordCamp Montreal
  52. 52. Installer.php July 18, 2016WordCamp Montreal
  53. 53. Processing Files July 18, 2016WordCamp Montreal
  54. 54. Update Files and Database July 18, 2016WordCamp Montreal
  55. 55. Test Site! July 18, 2016WordCamp Montreal
  56. 56. http://localhost/worpress July 18, 2016WordCamp Montreal
  57. 57. Transferring data many times July 18, 2016WordCamp Montreal
  58. 58. Production Staging Dev July 18, 2016WordCamp Montreal Process
  59. 59. https://deliciousbrains.com July 18, 2016WordCamp Montreal
  60. 60. WP Migrate DB Pro July 18, 2016WordCamp Montreal
  61. 61. WP Migrate DB Pro July 18, 2016WordCamp Montreal
  62. 62. Check your site… July 18, 2016WordCamp Montreal
  63. 63. White screen of death? • Update all plugins, themes, and WP core • Check php version changes • Deactivate all plugins • Deactivate the current theme - switch to 2015 • Reset permalinks • Check .htaccess file – Compare against the codex • index.html & index.php • .maintenance July 18, 2016WordCamp Montreal
  64. 64. White screen of death? • Modify wp-config.php - add: o define(“WP_DEBUG”, true); o define( “WP_DEBUG_DISPLAY”, true ); • Check the error log o Accessible via STFP o CPanel July 18, 2016WordCamp Montreal
  65. 65. Resources July 18, 2016WordCamp Montreal
  66. 66. Resources • https://codex.wordpress.org/Moving_WordPress • http://www.jasonbobich.com/web-design/ moving-wordpress-to-a-new-server/ July 18, 2016WordCamp Montreal
  67. 67. July 18, 2016WordCamp Montreal

×