SlideShare a Scribd company logo
1 of 59
Download to read offline
On The Move
Migrations Debunked
Jonathan Perlman - @jpurpleman
WPCampus 2017
http://jpurpleman.ca/
About me
• Canadian, eh! Montreal, Quebec
• Senior web developer at Dawson College
• Teacher at Dawson College’s CTD ( non-credit )
• WordCamp speaker
• Excel super-geek as per
Chris Lema
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Dawson College
• Nginx
• php-fpm
• MariaDB
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
• WordPress
• Drupal
• Moodle
• WeBWorK
• OpenEdX
• MediaWiki
• Git with Gitolite-admin
What’s covered…
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
• WordPress.com to self-hosted
• General overview
• One-time transfer
• Continuous migration
• DNS
• Check your site
• Resources
WordPress.com
to
Self-Hosted
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
WordPress.com
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Export From WordPress.com
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Export From WordPress.com
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Import to WordPress.org
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Import to WordPress.org
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Post Import
• Theme
o Theme Directory – https://wordpress.org/theme
o Custom development ?
• Plugins
o Plugin Directory – https://wordpress.org/plugins
o JetPack
o Custom development ?
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
General Overview
Host to host
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
What are we moving?
Code
HTML, CSS,
JS, PHP
Media
Library
JPG, PNG,
DOC, PDF
Content SQL Database
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Doing the migration
• Login to old host and download the WordPress site and
export MySQL database
• Login to new host and create a MySQL database
• Change wp-config.php locally within the WordPress
installation files
• Upload the WordPress site onto the new host and import
MySQL database
• Change Site URL and Site Path within the database
• Change your hosts file and test the site
• Change the DNS and wait
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Required Tools
• Command line ( SSH )
o tar, scp, sed
o vim
o wp-cli
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
• File Transfer Program
o FileZilla
• Database client
o phpMyAdmin
o HeidiSQL
• ( Windows only )
o Sequel Pro
• ( Mac only )
One-Time
Host to Host
Transfer
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Doing the migration
• Login to old host and download the WordPress site and export
MySQL database
• Login to new host and create a MySQL database
• Change wp-config.php locally within the WordPress
installation files
• Upload the WordPress site onto the new host and import
MySQL database
• Change Site URL and Site Path within the database
• Change your hosts file
• Check your site on the new host for errors
• Change the DNS and wait
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
CPanel based server
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
CPanel based server
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Full CPanel backup
• homedir
o public_html
• mysql
o site7453prod.sql
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
FTP / SFTP
• Download the files from the web accessible area
o htdocs, public_html, www
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Exporting via phpMyAdmin
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Exporting via command line
• WP-CLI
o wp db export
• Raw MySQL Command
o mysqldump -u root -pPASSWORD 
--complete-insert 
--skip-extended-insert 
--max_allowed_packet=512M 
-B site_edu > site_edu.sql
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Doing the migration
• Login to old host and download the WordPress site and export
MySQL database
• Login to new host and create a MySQL database
• Change wp-config.php locally within the WordPress
installation files
• Upload the WordPress site onto the new host and import
MySQL database
• Change Site URL and Site Path within the database
• Change your hosts file
• Check your site on the new host for errors
• Change the DNS and wait
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Login to the database
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Create a new database
1 Create a New
database
2 Give the database
a name
o Lowercase
o No spaces – use
underscores
o No special characters
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Listing users having access
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Creating a user
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Doing the migration
• Login to old host and download the WordPress site and export
MySQL database
• Login to new host and create a MySQL database
• Change wp-config.php locally within the WordPress
installation files
• Upload the WordPress site onto the new host and import
MySQL database
• Change Site URL and Site Path within the database
• Change your hosts file
• Check your site on the new host for errors
• Change the DNS and wait
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Change wp-config.php
• Edit wp-config.php with a text editor
• Change lines ~ 23, 26, 29 start with "define"
/** The name of the database for WordPress */
define('DB_NAME', ‘');
/** MySQL database username */
define('DB_USER', ‘');
/** MySQL database password */
define('DB_PASSWORD', '');
/** MySQL hostname */
define('DB_HOST', 'localhost');
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Doing the migration
• Login to old host and download the WordPress site and export
MySQL database
• Login to new host and create a MySQL database
• Change wp-config.php locally within the WordPress
installation files
• Upload the WordPress site onto the new host and import
MySQL database
• Change Site URL and Site Path within the database
• Change your hosts file
• Check your site on the new host for errors
• Change the DNS and wait
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Importing via phpMyAdmin
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Importing via command line
• WP-CLI
o wp db import
• Raw MySQL Command
o mysql -u root -pPASSWORD 
--max_allowed_packet=512M
site_edu < site_edu.sql
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Doing the migration
• Login to old host and download the WordPress site and export
MySQL database
• Login to new host and create a MySQL database
• Change wp-config.php locally within the WordPress
installation files
• Upload the WordPress site onto the new host and import
MySQL database
• Change Site URL and Site Path within the database
• Change your hosts file
• Check your site on the new host for errors
• Change the DNS and wait
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Serialized data
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Change WordPress location
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
https://interconnectit.com/products/
search-and-replace-for-wordpress-databases/
Change WordPress location
Single Site Multi-Site
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
wp search-replace
‘http://example.com’
‘http://example.dev’
wp search-replace
--url=http://example.com
‘http://example.com’
‘http://example.dev’
Examples of Find / Replace
Find Replace
Path /home/siteedu7453/ /var/www/html/site.edu
Protocol
http://www.site.edu
http://site.edu
https://www.site.edu
Environment htttps://www.site.edu https://site.dev
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Doing the migration
• Login to old host and download the WordPress site and export
MySQL database
• Login to new host and create a MySQL database
• Change wp-config.php locally within the WordPress
installation files
• Upload the WordPress site onto the new host and import
MySQL database
• Change Site URL and Site Path within the database
• Change your hosts file
• Check your site on the new host for errors
• Change the DNS and wait
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Override your DNS
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
http://www.howtogeek.com/howto/27350/
beginner-geek-how-to-edit-your-hosts-file/
Windows
July 15, 2017WPCampus 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
Mac
• 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 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Doing the migration
• Login to old host and download the WordPress site and export
MySQL database
• Login to new host and create a MySQL database
• Change wp-config.php locally within the WordPress
installation files
• Upload the WordPress site onto the new host and import
MySQL database
• Change Site URL and Site Path within the database
• Change your hosts file
• Check your site on the new host for errors
• Change the DNS and wait
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
White screen of death?
• Update all plugins, themes, and WP core
• Check php version changes
• Deactivate all plugins and reactivate them one-by-one
• Deactivate the current theme - switch to 2017
• Reset permalinks
• Check .htaccess file – Compare against the codex
• index.html & index.php
• .maintenance
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
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 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Doing the migration
• Login to old host and download the WordPress site and export
MySQL database
• Login to new host and create a MySQL database
• Change wp-config.php locally within the WordPress
installation files
• Upload the WordPress site onto the new host and import
MySQL database
• Change Site URL and Site Path within the database
• Change your hosts file
• Check your site on the new host for errors
• Change the DNS and wait
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Setting Name Servers
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Setting DNS Records
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Playing the waiting game
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Transferring Via Plugins
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Plugin comparison
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Plugin Single Site vs Multisite Migrates what?
Duplicator
Single Site
Code
Media Library
Content
Backup Buddy
UpDraftPlus
Single Site
Multisite ( with Premium )
All-in-One WP
Migration
WP Migrate DB Pro
Single Site
Multisite
Media Library
Content
WP Site Sync
Duplicator
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
deliciousbrains.com
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
wpsitesync.com
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Pros / Cons
Pros Cons
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
• Super user friendly
• Export site to the cloud
• Automates the process
• Finds and replaces
• Not multi-site friendly
• Timeouts on larger sites
• Can’t use CloudFlare
while duplicating
• May require changes to
.htaccess
• Files might need to go in
non-standard directories
Resources
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Resources
• http://www.wpbeginner.com/wp-tutorials/
how-to-move-wordpress-to-a-new-host-or-server-
with-no-downtime/
• https://codex.wordpress.org/Moving_WordPress
• https://wordpress.org/support
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
Thank you! Questions? Survey!
July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
https://2017.wpcampus.org/session-survey/424

More Related Content

What's hot

Teaching Cloud to the Programmers of Tomorrow
Teaching Cloud to the Programmers of TomorrowTeaching Cloud to the Programmers of Tomorrow
Teaching Cloud to the Programmers of TomorrowMike Crabb
 
My Website is Old Enough to Vote - My Website Can Vote - Building Sites That ...
My Website is Old Enough to Vote - My Website Can Vote - Building Sites That ...My Website is Old Enough to Vote - My Website Can Vote - Building Sites That ...
My Website is Old Enough to Vote - My Website Can Vote - Building Sites That ...Kristine Howard
 
JS Fest 2019/Autumn. Eyal Eizenberg. Tipping the Scale
JS Fest 2019/Autumn. Eyal Eizenberg. Tipping the ScaleJS Fest 2019/Autumn. Eyal Eizenberg. Tipping the Scale
JS Fest 2019/Autumn. Eyal Eizenberg. Tipping the ScaleJSFestUA
 
The Characteristics of a Successful SPA
The Characteristics of a Successful SPAThe Characteristics of a Successful SPA
The Characteristics of a Successful SPAGil Fink
 
Tipping the scale - Eyal Eizenberg - Wix
Tipping the scale - Eyal Eizenberg - WixTipping the scale - Eyal Eizenberg - Wix
Tipping the scale - Eyal Eizenberg - WixEyal Eizenberg
 
Understanding Page Load / Ziling Zhao (Google)
Understanding Page Load / Ziling Zhao (Google)Understanding Page Load / Ziling Zhao (Google)
Understanding Page Load / Ziling Zhao (Google)Ontico
 
Amazon.com's Web Services Opportunity
Amazon.com's Web Services OpportunityAmazon.com's Web Services Opportunity
Amazon.com's Web Services OpportunityTim O'Reilly
 
How to Get Your First Child Theme Off The Ground
How to Get Your First Child Theme Off The GroundHow to Get Your First Child Theme Off The Ground
How to Get Your First Child Theme Off The GroundRhys Wynne
 
Tipping the Scale - Eyal Eizenberg
Tipping the Scale - Eyal EizenbergTipping the Scale - Eyal Eizenberg
Tipping the Scale - Eyal EizenbergWix Engineering
 
20120329 installing wordpress_3_3_1_locally
20120329 installing wordpress_3_3_1_locally20120329 installing wordpress_3_3_1_locally
20120329 installing wordpress_3_3_1_locallyDERlab
 
RESTful services on IBM Domino/XWork (ICON UK 21-22 Sept. 2015)
RESTful services on IBM Domino/XWork (ICON UK 21-22 Sept. 2015)RESTful services on IBM Domino/XWork (ICON UK 21-22 Sept. 2015)
RESTful services on IBM Domino/XWork (ICON UK 21-22 Sept. 2015)John Dalsgaard
 
Develop a vanilla.js spa you and your customers will love
Develop a vanilla.js spa you and your customers will loveDevelop a vanilla.js spa you and your customers will love
Develop a vanilla.js spa you and your customers will loveChris Love
 
Les Basiques - Web Développement HTML5, CSS3, JS et PHP
Les Basiques - Web  Développement HTML5, CSS3, JS et PHPLes Basiques - Web  Développement HTML5, CSS3, JS et PHP
Les Basiques - Web Développement HTML5, CSS3, JS et PHPHamdi Hmidi
 
Untangling spring week8
Untangling spring week8Untangling spring week8
Untangling spring week8Derek Jacoby
 
WordPress Theme Performance - WP Vienna meetup 8.6.2016
WordPress Theme Performance - WP Vienna meetup 8.6.2016WordPress Theme Performance - WP Vienna meetup 8.6.2016
WordPress Theme Performance - WP Vienna meetup 8.6.2016jancbeck
 
Javascript - Getting started | DevCom ISITCom
Javascript - Getting started | DevCom ISITComJavascript - Getting started | DevCom ISITCom
Javascript - Getting started | DevCom ISITComHamdi Hmidi
 
20130714 php matsuri - highly available php
20130714   php matsuri - highly available php20130714   php matsuri - highly available php
20130714 php matsuri - highly available phpGraham Weldon
 
Copass + Ruby on Rails = &lt;3 - From Simplicity to Complexity
Copass + Ruby on Rails = &lt;3 - From Simplicity to ComplexityCopass + Ruby on Rails = &lt;3 - From Simplicity to Complexity
Copass + Ruby on Rails = &lt;3 - From Simplicity to ComplexityAugustin Riedinger
 
HTML-First at Wiley - Tzviya Siegman & Benjamin Young - ebookcraft 2018
HTML-First at Wiley - Tzviya Siegman & Benjamin Young - ebookcraft 2018HTML-First at Wiley - Tzviya Siegman & Benjamin Young - ebookcraft 2018
HTML-First at Wiley - Tzviya Siegman & Benjamin Young - ebookcraft 2018BookNet Canada
 

What's hot (20)

WooCommerce Fundamentals
WooCommerce FundamentalsWooCommerce Fundamentals
WooCommerce Fundamentals
 
Teaching Cloud to the Programmers of Tomorrow
Teaching Cloud to the Programmers of TomorrowTeaching Cloud to the Programmers of Tomorrow
Teaching Cloud to the Programmers of Tomorrow
 
My Website is Old Enough to Vote - My Website Can Vote - Building Sites That ...
My Website is Old Enough to Vote - My Website Can Vote - Building Sites That ...My Website is Old Enough to Vote - My Website Can Vote - Building Sites That ...
My Website is Old Enough to Vote - My Website Can Vote - Building Sites That ...
 
JS Fest 2019/Autumn. Eyal Eizenberg. Tipping the Scale
JS Fest 2019/Autumn. Eyal Eizenberg. Tipping the ScaleJS Fest 2019/Autumn. Eyal Eizenberg. Tipping the Scale
JS Fest 2019/Autumn. Eyal Eizenberg. Tipping the Scale
 
The Characteristics of a Successful SPA
The Characteristics of a Successful SPAThe Characteristics of a Successful SPA
The Characteristics of a Successful SPA
 
Tipping the scale - Eyal Eizenberg - Wix
Tipping the scale - Eyal Eizenberg - WixTipping the scale - Eyal Eizenberg - Wix
Tipping the scale - Eyal Eizenberg - Wix
 
Understanding Page Load / Ziling Zhao (Google)
Understanding Page Load / Ziling Zhao (Google)Understanding Page Load / Ziling Zhao (Google)
Understanding Page Load / Ziling Zhao (Google)
 
Amazon.com's Web Services Opportunity
Amazon.com's Web Services OpportunityAmazon.com's Web Services Opportunity
Amazon.com's Web Services Opportunity
 
How to Get Your First Child Theme Off The Ground
How to Get Your First Child Theme Off The GroundHow to Get Your First Child Theme Off The Ground
How to Get Your First Child Theme Off The Ground
 
Tipping the Scale - Eyal Eizenberg
Tipping the Scale - Eyal EizenbergTipping the Scale - Eyal Eizenberg
Tipping the Scale - Eyal Eizenberg
 
20120329 installing wordpress_3_3_1_locally
20120329 installing wordpress_3_3_1_locally20120329 installing wordpress_3_3_1_locally
20120329 installing wordpress_3_3_1_locally
 
RESTful services on IBM Domino/XWork (ICON UK 21-22 Sept. 2015)
RESTful services on IBM Domino/XWork (ICON UK 21-22 Sept. 2015)RESTful services on IBM Domino/XWork (ICON UK 21-22 Sept. 2015)
RESTful services on IBM Domino/XWork (ICON UK 21-22 Sept. 2015)
 
Develop a vanilla.js spa you and your customers will love
Develop a vanilla.js spa you and your customers will loveDevelop a vanilla.js spa you and your customers will love
Develop a vanilla.js spa you and your customers will love
 
Les Basiques - Web Développement HTML5, CSS3, JS et PHP
Les Basiques - Web  Développement HTML5, CSS3, JS et PHPLes Basiques - Web  Développement HTML5, CSS3, JS et PHP
Les Basiques - Web Développement HTML5, CSS3, JS et PHP
 
Untangling spring week8
Untangling spring week8Untangling spring week8
Untangling spring week8
 
WordPress Theme Performance - WP Vienna meetup 8.6.2016
WordPress Theme Performance - WP Vienna meetup 8.6.2016WordPress Theme Performance - WP Vienna meetup 8.6.2016
WordPress Theme Performance - WP Vienna meetup 8.6.2016
 
Javascript - Getting started | DevCom ISITCom
Javascript - Getting started | DevCom ISITComJavascript - Getting started | DevCom ISITCom
Javascript - Getting started | DevCom ISITCom
 
20130714 php matsuri - highly available php
20130714   php matsuri - highly available php20130714   php matsuri - highly available php
20130714 php matsuri - highly available php
 
Copass + Ruby on Rails = &lt;3 - From Simplicity to Complexity
Copass + Ruby on Rails = &lt;3 - From Simplicity to ComplexityCopass + Ruby on Rails = &lt;3 - From Simplicity to Complexity
Copass + Ruby on Rails = &lt;3 - From Simplicity to Complexity
 
HTML-First at Wiley - Tzviya Siegman & Benjamin Young - ebookcraft 2018
HTML-First at Wiley - Tzviya Siegman & Benjamin Young - ebookcraft 2018HTML-First at Wiley - Tzviya Siegman & Benjamin Young - ebookcraft 2018
HTML-First at Wiley - Tzviya Siegman & Benjamin Young - ebookcraft 2018
 

Similar to On the Move, Website Migrations Debunked

Building faster websites: web performance with WordPress
Building faster websites: web performance with WordPressBuilding faster websites: web performance with WordPress
Building faster websites: web performance with WordPressJohannes Siipola
 
Prepare for Launch: A Pre-Launch Checklist for Life on the Web
Prepare for Launch: A Pre-Launch Checklist for Life on the WebPrepare for Launch: A Pre-Launch Checklist for Life on the Web
Prepare for Launch: A Pre-Launch Checklist for Life on the WebJessica C. Gardner
 
Configuration Management in WordPress
Configuration Management in WordPressConfiguration Management in WordPress
Configuration Management in WordPressEdmund Turbin
 
Docker for Developers - PNWPHP 2016 Workshop
Docker for Developers - PNWPHP 2016 WorkshopDocker for Developers - PNWPHP 2016 Workshop
Docker for Developers - PNWPHP 2016 WorkshopChris Tankersley
 
What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012
What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012
What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012WordCamp Sydney
 
Docker for PHP Developers - Madison PHP 2017
Docker for PHP Developers - Madison PHP 2017Docker for PHP Developers - Madison PHP 2017
Docker for PHP Developers - Madison PHP 2017Chris Tankersley
 
Improve WordPress performance with caching and deferred execution of code
Improve WordPress performance with caching and deferred execution of codeImprove WordPress performance with caching and deferred execution of code
Improve WordPress performance with caching and deferred execution of codeDanilo Ercoli
 
What is Nginx and Why You Should to Use it with Wordpress Hosting
What is Nginx and Why You Should to Use it with Wordpress HostingWhat is Nginx and Why You Should to Use it with Wordpress Hosting
What is Nginx and Why You Should to Use it with Wordpress HostingWPSFO Meetup Group
 
10 Things You Can Do to Speed Up Your Web App Today
10 Things You Can Do to Speed Up Your Web App Today10 Things You Can Do to Speed Up Your Web App Today
10 Things You Can Do to Speed Up Your Web App TodayChris Love
 
WordPress Hosting Best Practices - Do's and Don't s | WordPress Trivandrum
WordPress Hosting Best Practices - Do's and Don't s  | WordPress TrivandrumWordPress Hosting Best Practices - Do's and Don't s  | WordPress Trivandrum
WordPress Hosting Best Practices - Do's and Don't s | WordPress TrivandrumWordPress Trivandrum
 
My Website Is Old Enough To Vote - Kris Howard
My Website Is Old Enough To Vote - Kris HowardMy Website Is Old Enough To Vote - Kris Howard
My Website Is Old Enough To Vote - Kris HowardWordCamp Sydney
 
Improving WordPress Development and Deployments with Docker
Improving WordPress Development and Deployments with DockerImproving WordPress Development and Deployments with Docker
Improving WordPress Development and Deployments with DockerBrett Palmer
 
Managing Corporate Websites
Managing Corporate WebsitesManaging Corporate Websites
Managing Corporate WebsitesNadine Wildmann
 
Docker for Developers - Sunshine PHP
Docker for Developers - Sunshine PHPDocker for Developers - Sunshine PHP
Docker for Developers - Sunshine PHPChris Tankersley
 
Optimizing Your WordPress Site
Optimizing Your WordPress SiteOptimizing Your WordPress Site
Optimizing Your WordPress Siteozzyr
 
Browser Extension 2
Browser Extension 2Browser Extension 2
Browser Extension 2Kentwelcome
 
Did wordpressdothat
Did wordpressdothatDid wordpressdothat
Did wordpressdothatJon Bishop
 
Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0Morten Rand-Hendriksen
 
Drupal 8 and NGINX
Drupal 8 and NGINX Drupal 8 and NGINX
Drupal 8 and NGINX NGINX, Inc.
 

Similar to On the Move, Website Migrations Debunked (20)

Building faster websites: web performance with WordPress
Building faster websites: web performance with WordPressBuilding faster websites: web performance with WordPress
Building faster websites: web performance with WordPress
 
Prepare for Launch: A Pre-Launch Checklist for Life on the Web
Prepare for Launch: A Pre-Launch Checklist for Life on the WebPrepare for Launch: A Pre-Launch Checklist for Life on the Web
Prepare for Launch: A Pre-Launch Checklist for Life on the Web
 
Configuration Management in WordPress
Configuration Management in WordPressConfiguration Management in WordPress
Configuration Management in WordPress
 
Docker for Developers - PNWPHP 2016 Workshop
Docker for Developers - PNWPHP 2016 WorkshopDocker for Developers - PNWPHP 2016 Workshop
Docker for Developers - PNWPHP 2016 Workshop
 
What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012
What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012
What Multisite can do for You - Anthony Cole - WordCamp Sydney 2012
 
Docker for PHP Developers - Madison PHP 2017
Docker for PHP Developers - Madison PHP 2017Docker for PHP Developers - Madison PHP 2017
Docker for PHP Developers - Madison PHP 2017
 
Improve WordPress performance with caching and deferred execution of code
Improve WordPress performance with caching and deferred execution of codeImprove WordPress performance with caching and deferred execution of code
Improve WordPress performance with caching and deferred execution of code
 
What is Nginx and Why You Should to Use it with Wordpress Hosting
What is Nginx and Why You Should to Use it with Wordpress HostingWhat is Nginx and Why You Should to Use it with Wordpress Hosting
What is Nginx and Why You Should to Use it with Wordpress Hosting
 
10 Things You Can Do to Speed Up Your Web App Today
10 Things You Can Do to Speed Up Your Web App Today10 Things You Can Do to Speed Up Your Web App Today
10 Things You Can Do to Speed Up Your Web App Today
 
WordPress Hosting Best Practices - Do's and Don't s | WordPress Trivandrum
WordPress Hosting Best Practices - Do's and Don't s  | WordPress TrivandrumWordPress Hosting Best Practices - Do's and Don't s  | WordPress Trivandrum
WordPress Hosting Best Practices - Do's and Don't s | WordPress Trivandrum
 
ECS19 - Robi Voncina - Upgrade to SharePoint 2019
ECS19 - Robi Voncina - Upgrade to SharePoint 2019ECS19 - Robi Voncina - Upgrade to SharePoint 2019
ECS19 - Robi Voncina - Upgrade to SharePoint 2019
 
My Website Is Old Enough To Vote - Kris Howard
My Website Is Old Enough To Vote - Kris HowardMy Website Is Old Enough To Vote - Kris Howard
My Website Is Old Enough To Vote - Kris Howard
 
Improving WordPress Development and Deployments with Docker
Improving WordPress Development and Deployments with DockerImproving WordPress Development and Deployments with Docker
Improving WordPress Development and Deployments with Docker
 
Managing Corporate Websites
Managing Corporate WebsitesManaging Corporate Websites
Managing Corporate Websites
 
Docker for Developers - Sunshine PHP
Docker for Developers - Sunshine PHPDocker for Developers - Sunshine PHP
Docker for Developers - Sunshine PHP
 
Optimizing Your WordPress Site
Optimizing Your WordPress SiteOptimizing Your WordPress Site
Optimizing Your WordPress Site
 
Browser Extension 2
Browser Extension 2Browser Extension 2
Browser Extension 2
 
Did wordpressdothat
Did wordpressdothatDid wordpressdothat
Did wordpressdothat
 
Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0Building the next generation of themes with WP Rig 2.0
Building the next generation of themes with WP Rig 2.0
 
Drupal 8 and NGINX
Drupal 8 and NGINX Drupal 8 and NGINX
Drupal 8 and NGINX
 

Recently uploaded

Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirtrahman018755
 
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.soniya singh
 
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girlsstephieert
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...APNIC
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts servicesonalikaur4
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLimonikaupta
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024APNIC
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girlsstephieert
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Servicesexy call girls service in goa
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...Diya Sharma
 
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445ruhi
 
Radiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsRadiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsstephieert
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Sheetaleventcompany
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607dollysharma2066
 
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663Call Girls Mumbai
 

Recently uploaded (20)

Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
 
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya ShirtChallengers I Told Ya Shirt
Challengers I Told Ya ShirtChallengers I Told Ya Shirt
 
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Green Park Escort Service Delhi N.C.R.
 
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
10.pdfMature Call girls in Dubai +971563133746 Dubai Call girls
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
 
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
'Future Evolution of the Internet' delivered by Geoff Huston at Everything Op...
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
 
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRLLucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
Lucknow ❤CALL GIRL 88759*99948 ❤CALL GIRLS IN Lucknow ESCORT SERVICE❤CALL GIRL
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
 
Russian Call girls in Dubai +971563133746 Dubai Call girls
Russian  Call girls in Dubai +971563133746 Dubai  Call girlsRussian  Call girls in Dubai +971563133746 Dubai  Call girls
Russian Call girls in Dubai +971563133746 Dubai Call girls
 
Call Girls In South Ex 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In South Ex 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICECall Girls In South Ex 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In South Ex 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
 
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine ServiceHot Service (+9316020077 ) Goa  Call Girls Real Photos and Genuine Service
Hot Service (+9316020077 ) Goa Call Girls Real Photos and Genuine Service
 
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Ashram Chowk Delhi 💯Call Us 🔝8264348440🔝
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
 
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
All Time Service Available Call Girls Mg Road 👌 ⏭️ 6378878445
 
Radiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsRadiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girls
 
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
Call Girls Service Chandigarh Lucky ❤️ 7710465962 Independent Call Girls In C...
 
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
FULL ENJOY Call Girls In Mayur Vihar Delhi Contact Us 8377087607
 
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
✂️ 👅 Independent Andheri Escorts With Room Vashi Call Girls 💃 9004004663
 

On the Move, Website Migrations Debunked

  • 1. On The Move Migrations Debunked Jonathan Perlman - @jpurpleman WPCampus 2017 http://jpurpleman.ca/
  • 2. About me • Canadian, eh! Montreal, Quebec • Senior web developer at Dawson College • Teacher at Dawson College’s CTD ( non-credit ) • WordCamp speaker • Excel super-geek as per Chris Lema July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 3. Dawson College • Nginx • php-fpm • MariaDB July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca • WordPress • Drupal • Moodle • WeBWorK • OpenEdX • MediaWiki • Git with Gitolite-admin
  • 4. What’s covered… July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca • WordPress.com to self-hosted • General overview • One-time transfer • Continuous migration • DNS • Check your site • Resources
  • 5. WordPress.com to Self-Hosted July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 6. WordPress.com July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 7. Export From WordPress.com July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 8. Export From WordPress.com July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 9. Import to WordPress.org July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 10. Import to WordPress.org July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 11. Post Import • Theme o Theme Directory – https://wordpress.org/theme o Custom development ? • Plugins o Plugin Directory – https://wordpress.org/plugins o JetPack o Custom development ? July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 12. General Overview Host to host July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 13. What are we moving? Code HTML, CSS, JS, PHP Media Library JPG, PNG, DOC, PDF Content SQL Database July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 14. Doing the migration • Login to old host and download the WordPress site and export MySQL database • Login to new host and create a MySQL database • Change wp-config.php locally within the WordPress installation files • Upload the WordPress site onto the new host and import MySQL database • Change Site URL and Site Path within the database • Change your hosts file and test the site • Change the DNS and wait July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 15. Required Tools • Command line ( SSH ) o tar, scp, sed o vim o wp-cli July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca • File Transfer Program o FileZilla • Database client o phpMyAdmin o HeidiSQL • ( Windows only ) o Sequel Pro • ( Mac only )
  • 16. One-Time Host to Host Transfer July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 17. Doing the migration • Login to old host and download the WordPress site and export MySQL database • Login to new host and create a MySQL database • Change wp-config.php locally within the WordPress installation files • Upload the WordPress site onto the new host and import MySQL database • Change Site URL and Site Path within the database • Change your hosts file • Check your site on the new host for errors • Change the DNS and wait July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 18. CPanel based server July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 19. CPanel based server July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 20. Full CPanel backup • homedir o public_html • mysql o site7453prod.sql July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 21. FTP / SFTP • Download the files from the web accessible area o htdocs, public_html, www July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 22. Exporting via phpMyAdmin July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 23. Exporting via command line • WP-CLI o wp db export • Raw MySQL Command o mysqldump -u root -pPASSWORD --complete-insert --skip-extended-insert --max_allowed_packet=512M -B site_edu > site_edu.sql July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 24. Doing the migration • Login to old host and download the WordPress site and export MySQL database • Login to new host and create a MySQL database • Change wp-config.php locally within the WordPress installation files • Upload the WordPress site onto the new host and import MySQL database • Change Site URL and Site Path within the database • Change your hosts file • Check your site on the new host for errors • Change the DNS and wait July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 25. Login to the database July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 26. Create a new database 1 Create a New database 2 Give the database a name o Lowercase o No spaces – use underscores o No special characters July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 27. Listing users having access July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 28. Creating a user July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 29. Doing the migration • Login to old host and download the WordPress site and export MySQL database • Login to new host and create a MySQL database • Change wp-config.php locally within the WordPress installation files • Upload the WordPress site onto the new host and import MySQL database • Change Site URL and Site Path within the database • Change your hosts file • Check your site on the new host for errors • Change the DNS and wait July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 30. Change wp-config.php • Edit wp-config.php with a text editor • Change lines ~ 23, 26, 29 start with "define" /** The name of the database for WordPress */ define('DB_NAME', ‘'); /** MySQL database username */ define('DB_USER', ‘'); /** MySQL database password */ define('DB_PASSWORD', ''); /** MySQL hostname */ define('DB_HOST', 'localhost'); July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 31. Doing the migration • Login to old host and download the WordPress site and export MySQL database • Login to new host and create a MySQL database • Change wp-config.php locally within the WordPress installation files • Upload the WordPress site onto the new host and import MySQL database • Change Site URL and Site Path within the database • Change your hosts file • Check your site on the new host for errors • Change the DNS and wait July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 32. Importing via phpMyAdmin July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 33. Importing via command line • WP-CLI o wp db import • Raw MySQL Command o mysql -u root -pPASSWORD --max_allowed_packet=512M site_edu < site_edu.sql July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 34. Doing the migration • Login to old host and download the WordPress site and export MySQL database • Login to new host and create a MySQL database • Change wp-config.php locally within the WordPress installation files • Upload the WordPress site onto the new host and import MySQL database • Change Site URL and Site Path within the database • Change your hosts file • Check your site on the new host for errors • Change the DNS and wait July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 35. Serialized data July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 36. Change WordPress location July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca https://interconnectit.com/products/ search-and-replace-for-wordpress-databases/
  • 37. Change WordPress location Single Site Multi-Site July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca wp search-replace ‘http://example.com’ ‘http://example.dev’ wp search-replace --url=http://example.com ‘http://example.com’ ‘http://example.dev’
  • 38. Examples of Find / Replace Find Replace Path /home/siteedu7453/ /var/www/html/site.edu Protocol http://www.site.edu http://site.edu https://www.site.edu Environment htttps://www.site.edu https://site.dev July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 39. Doing the migration • Login to old host and download the WordPress site and export MySQL database • Login to new host and create a MySQL database • Change wp-config.php locally within the WordPress installation files • Upload the WordPress site onto the new host and import MySQL database • Change Site URL and Site Path within the database • Change your hosts file • Check your site on the new host for errors • Change the DNS and wait July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 40. Override your DNS July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca http://www.howtogeek.com/howto/27350/ beginner-geek-how-to-edit-your-hosts-file/
  • 41. Windows July 15, 2017WPCampus 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
  • 42. Mac • 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 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 43. Doing the migration • Login to old host and download the WordPress site and export MySQL database • Login to new host and create a MySQL database • Change wp-config.php locally within the WordPress installation files • Upload the WordPress site onto the new host and import MySQL database • Change Site URL and Site Path within the database • Change your hosts file • Check your site on the new host for errors • Change the DNS and wait July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 44.
  • 45. White screen of death? • Update all plugins, themes, and WP core • Check php version changes • Deactivate all plugins and reactivate them one-by-one • Deactivate the current theme - switch to 2017 • Reset permalinks • Check .htaccess file – Compare against the codex • index.html & index.php • .maintenance July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 46. 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 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 47. Doing the migration • Login to old host and download the WordPress site and export MySQL database • Login to new host and create a MySQL database • Change wp-config.php locally within the WordPress installation files • Upload the WordPress site onto the new host and import MySQL database • Change Site URL and Site Path within the database • Change your hosts file • Check your site on the new host for errors • Change the DNS and wait July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 48. Setting Name Servers July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 49. Setting DNS Records July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 50. Playing the waiting game July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 51. Transferring Via Plugins July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 52. Plugin comparison July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca Plugin Single Site vs Multisite Migrates what? Duplicator Single Site Code Media Library Content Backup Buddy UpDraftPlus Single Site Multisite ( with Premium ) All-in-One WP Migration WP Migrate DB Pro Single Site Multisite Media Library Content WP Site Sync
  • 53. Duplicator July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 54. deliciousbrains.com July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 55. wpsitesync.com July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 56. Pros / Cons Pros Cons July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca • Super user friendly • Export site to the cloud • Automates the process • Finds and replaces • Not multi-site friendly • Timeouts on larger sites • Can’t use CloudFlare while duplicating • May require changes to .htaccess • Files might need to go in non-standard directories
  • 57. Resources July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca
  • 59. Thank you! Questions? Survey! July 15, 2017WPCampus 2017 | https://www.jpurpleman.ca https://2017.wpcampus.org/session-survey/424