On the Move, Migrations Made Simple
-
Upload
jonathan-perlman -
Category
Internet
-
view
192 -
download
0
Transcript of On the Move, Migrations Made Simple
On The MoveMigrations Made Simple
Jonathan Perlman - @jpurpleman
WordCamp Rochester 2016
http://jpurpleman.ca/
What’s covered…
October 15, 2016WordCamp Rochester
• WordPress.com to self-hosted
• DNS
• Transferring files and data
• Transferring via duplicator
• Transferring data many times
• Check your site
• Resources
About me
Developer14 years
Teacher9 years
Trekie Since
ST:TNG
October 15, 2016WordCamp Rochester
October 15, 2016WordCamp Rochester
ENGAGE!
WordPress.comto
WordPress.org
October 15, 2016WordCamp Rochester
What’s the difference?
October 15, 2016WordCamp Rochester
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
SSLSecurity
You manage / You pay for it Automattic gives it for you
Export
October 15, 2016WordCamp Rochester
Export
October 15, 2016WordCamp Rochester
Import
October 15, 2016WordCamp Rochester
Import
October 15, 2016WordCamp Rochester
DNSDomain Name System
October 15, 2016WordCamp Rochester
Name Servers
October 15, 2016WordCamp Rochester
DNS
October 15, 2016WordCamp Rochester
Override your DNS• Modify as Administrator
• Windows
o c:\windows\system32\drivers\etc\hosts
• 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/
October 15, 2016WordCamp Rochester
Windows
October 15, 2016WordCamp Rochester
• Using the Windows Logo use the Start Menu /
Screen and search for Notepad
• Right click Notepad and “Run as Administrator”
c:\windows\system32\drivers\etc\hosts
Adding the entry
October 15, 2016WordCamp Rochester
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
October 15, 2016WordCamp Rochester
Transferring Files and Data
October 15, 2016WordCamp Rochester
What are we moving?
PHP / HTML / CSS
WordPress Core
Plugins
Themes
JPG, PNG, GIF, DOC, PDF
Media
POSTS
PAGES
SQL Database
October 15, 2016WordCamp Rochester
How to migrate it?
With WordPress Plugins Without WordPress
October 15, 2016WordCamp Rochester
• Duplicator
• Backup Buddy
• WP Migrate DB Pro
• File Transfer Program
o FileZilla
o CyberDuck
o Transmit
• Database client
o phpMyAdmin
o HiediSQL
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:\wamp\www\wordpress
October 15, 2016WordCamp Rochester
FTP – Upload and Download
October 15, 2016WordCamp Rochester
Database
• phpMyAdmin, HeidiSQL, Navicat, MySql Workbench
October 15, 2016WordCamp Rochester
October 15, 2016WordCamp Rochester
October 15, 2016WordCamp Rochester
October 15, 2016WordCamp Rochester
Configure wp-config.php
October 15, 2016WordCamp Rochester
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');
October 15, 2016WordCamp Rochester
Change WordPress Location
October 15, 2016WordCamp Rochester
• https://interconnectit.com/products/
search-and-replace-for-wordpress-databases/
Transfer Via Duplicator
October 15, 2016WordCamp Rochester
http://wpcourse.dawsoncollege.qc.ca/wp4000
October 15, 2016WordCamp Rochester
Install Duplicator
October 15, 2016WordCamp Rochester
Create New
October 15, 2016WordCamp Rochester
Create New
October 15, 2016WordCamp Rochester
Storage Config
October 15, 2016WordCamp Rochester
Archive Config
October 15, 2016WordCamp Rochester
Installer Config
October 15, 2016WordCamp Rochester
Scan Complete
October 15, 2016WordCamp Rochester
Building Package
October 15, 2016WordCamp Rochester
Package Complete
October 15, 2016WordCamp Rochester
See downloaded files
October 15, 2016WordCamp Rochester
Create wordpress folder
October 15, 2016WordCamp Rochester
Login to the database• Go to http://localhost/phpmyadmin
October 15, 2016WordCamp Rochester
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
October 15, 2016WordCamp Rochester
install.php
October 15, 2016WordCamp Rochester
Installer.php
October 15, 2016WordCamp Rochester
Processing Files
October 15, 2016WordCamp Rochester
Update Files and Database
October 15, 2016WordCamp Rochester
Test Site!
October 15, 2016WordCamp Rochester
http://localhost/wordpress
October 15, 2016WordCamp Rochester
Transferring datamany times
October 15, 2016WordCamp Rochester
Process
Development
Production
October 15, 2016WordCamp Rochester
https://deliciousbrains.com
October 15, 2016WordCamp Rochester
Check your site…
October 15, 2016WordCamp Rochester
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
October 15, 2016WordCamp Rochester
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
October 15, 2016WordCamp Rochester
Resources
October 15, 2016WordCamp Rochester
Resources• https://codex.wordpress.org/Moving_WordPress
• http://www.jasonbobich.com/web-design/
moving-wordpress-to-a-new-server/
October 15, 2016WordCamp Rochester
October 15, 2016WordCamp Rochester