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.
The 7 Things I Know About Cyber Security After 25 Years | April 2024
On the Move - Migrations Made Simple
1. On The Move
Migrations Made Simple
Jonathan Perlman - @jpurpleman
WordCamp Montreal 2016
http://jpurpleman.ca/
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
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
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. 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
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
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. 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. 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. FTP – Upload and Download
July 18, 2016WordCamp Montreal
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. Change WordPress Location
July 18, 2016WordCamp Montreal
• https://interconnectit.com/products/
search-and-replace-for-wordpress-databases/
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. 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. 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. 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
49. Login to the database
• Go to http://localhost/phpmyadmin
July 18, 2016WordCamp Montreal
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
64. 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
65. 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