The document discusses how to migrate a WordPress site from WordPress.com to a self-hosted WordPress.org site. It covers exporting content from WordPress.com and importing it into a new WordPress.org site. Plugins like Duplicator can be used to transfer files, databases, and content. DNS settings need to be updated to point the domain to the new site. Troubleshooting tips are provided for issues like white screen of death errors.
1. On The Move,
Migrations Debunked
Jonathan Perlman - @jpurpleman
WordCamp Portland, Maine 2017
https://jpurpleman.ca/
2. What’s covered…
May 27, 2017WordCamp Portland, Maine 2017 | https://www.jpurpleman.ca
• WordPress.com to self-hosted
• Transferring files and data
• Transferring via duplicator
• Transferring data many times
• DNS
• Check your site
• Resources
6. What’s the difference?
May 27, 2017WordCamp Portland, Maine 2017 | https://www.jpurpleman.ca
WordPress.org
Self Hosted
WordPress.com
Cost $5, $500, $5000, $50,000 Free or paid monthly
Themes No restrictions Limited customizations
Plugins No restrictions Limited, no uploading
Control Full control Limited control
Maintenance You manage Automattic does it for you
Backups You manage Automattic does it for you
SSL
Security
You manage Automattic gives it for you
11. Post Import
• Themes
o Theme Directory – https://wordpress.org/theme
• Plugins
o Plugin Directory - https://wordpress.org/plugins
o JetPack
• Maintenance
o Update, update, update!
o Backups
o SSL?
• Higher a freelancer or company for maintenance
May 27, 2017WordCamp Portland, Maine 2017 | https://www.jpurpleman.ca
12. Transferring Files and Data
May 27, 2017WordCamp Portland, Maine 2017 | https://www.jpurpleman.ca
13. What are we moving?
HTM, CSS, JS,
PHP
Code
JPG, PNG, GIF,
DOC, PDF
Media Library
SQL Database
Content
May 27, 2017WordCamp Portland, Maine 2017 | https://www.jpurpleman.ca
14. How to migrate it?
With WordPress Plugins Without WordPress
May 27, 2017WordCamp Portland, Maine 2017 | https://www.jpurpleman.ca
• Duplicator
• Backup Buddy
• Desktop Server
• File Transfer Program
o FileZilla
o CyberDuck
o Transmit
• Database client
o phpMyAdmin
o HiediSQL
15. FTP – Upload and Download
• Download the files from the web accessible area
o htdocs, public_html, www
May 27, 2017WordCamp Portland, Maine 2017 | https://www.jpurpleman.ca
20. Configure wp-config.php
• Edit wp-config.php with a text editor.
• Change lines 23, 26, 29 starting with “define”
/** 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');
May 27, 2017
WordCamp Portland, Maine 2017 |
https://www.jpurpleman.ca
21. Change WordPress Location
May 27, 2017WordCamp Portland, Maine 2017 | https://www.jpurpleman.ca
• https://interconnectit.com/products/
search-and-replace-for-wordpress-databases/
35. Login to the database
• Go to http://localhost/phpmyadmin
May 27, 2017
WordCamp Portland, Maine 2017 |
https://www.jpurpleman.ca
36. 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
May 27, 2017
WordCamp Portland, Maine 2017 |
https://www.jpurpleman.ca
49. Override your DNS
May 27, 2017WordCamp Portland, Maine 2017 | https://www.jpurpleman.ca
http://www.howtogeek.com/howto/27350/
beginner-geek-how-to-edit-your-hosts-file/
50. Windows
May 27, 2017WordCamp Portland, Maine 2017 | https://www.jpurpleman.ca
• Using the Windows Logo use the Start Menu / Screen
and search for Notepad
• Right click Notepad and “Run as Administrator”
c:windowssystem32driversetchosts
51. 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
May 27, 2017WordCamp Portland, Maine 2017 | https://www.jpurpleman.ca
52. Playing the waiting game
May 27, 2017WordCamp Portland, Maine 2017 | https://www.jpurpleman.ca
53. Check your site…
May 27, 2017WordCamp Portland, Maine 2017 | https://www.jpurpleman.ca
54.
55. White screen of death?
• Update all plugins, themes, and WP core
• Check php version changes
• Deactivate all plugins
• Deactivate the current theme - switch to 2017
• Reset permalinks
• Check .htaccess file – Compare against the codex
• index.html & index.php
• .maintenance
May 27, 2017WordCamp Portland, Maine 2017 | https://www.jpurpleman.ca
56. 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
May 27, 2017WordCamp Portland, Maine 2017 | https://www.jpurpleman.ca