SlideShare une entreprise Scribd logo
1  sur  68
Télécharger pour lire hors ligne
On The Move
Migrations Made Simple
Jonathan Perlman - @jpurpleman
WordCamp Montreal 2016
http://jpurpleman.ca/
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
About me
Developer
14 years
Teacher
9 years
Trekie Since
ST:TNG
July 18, 2016WordCamp Montreal
July 18, 2016WordCamp Montreal
ENGAGE!
WordPress.com
to
WordPress.org
July 18, 2016WordCamp Montreal
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
Method
Export
Import
July 18, 2016WordCamp Montreal
Export
July 18, 2016WordCamp Montreal
Export
July 18, 2016WordCamp Montreal
Import
July 18, 2016WordCamp Montreal
Import
July 18, 2016WordCamp Montreal
DNS
Domain Name System
July 18, 2016WordCamp Montreal
Overview
July 18, 2016WordCamp Montreal
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
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
Adding the entry
July 18, 2016WordCamp Montreal
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
Transferring Files and Data
July 18, 2016WordCamp Montreal
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
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
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
FTP – Upload and Download
July 18, 2016WordCamp Montreal
Confirm Authenticity
July 18, 2016WordCamp Montreal
Database
• phpMyAdmin, HeidiSQL, Navicat, MySql Workbench
July 18, 2016WordCamp Montreal
July 18, 2016WordCamp Montreal
July 18, 2016WordCamp Montreal
July 18, 2016WordCamp Montreal
Configure wp-config.php
July 18, 2016WordCamp Montreal
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
Change WordPress Location
July 18, 2016WordCamp Montreal
• https://interconnectit.com/products/
search-and-replace-for-wordpress-databases/
The Development Stack
7/20/2016EQ WordPress Advanced 31
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
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
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
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
Transfer Via Duplicator
July 18, 2016WordCamp Montreal
http://wpcourse.dawsoncollege.qc.ca/#####
July 18, 2016WordCamp Montreal
Install Duplicator
July 18, 2016WordCamp Montreal
Create New
July 18, 2016WordCamp Montreal
Create New
July 18, 2016WordCamp Montreal
Storage Config
July 18, 2016WordCamp Montreal
Archive Config
July 18, 2016WordCamp Montreal
Installer Config
July 18, 2016WordCamp Montreal
Scan Complete
July 18, 2016WordCamp Montreal
Building Package
July 18, 2016WordCamp Montreal
Package Complete
July 18, 2016WordCamp Montreal
See downloaded files
July 18, 2016WordCamp Montreal
Create wordpress folder
July 18, 2016WordCamp Montreal
Login to the database
• Go to http://localhost/phpmyadmin
July 18, 2016WordCamp Montreal
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
install.php
July 18, 2016WordCamp Montreal
Installer.php
July 18, 2016WordCamp Montreal
Processing Files
July 18, 2016WordCamp Montreal
Update Files and Database
July 18, 2016WordCamp Montreal
Test Site!
July 18, 2016WordCamp Montreal
http://localhost/worpress
July 18, 2016WordCamp Montreal
Transferring data
many times
July 18, 2016WordCamp Montreal
Production
Staging
Dev
July 18, 2016WordCamp Montreal
Process
https://deliciousbrains.com
July 18, 2016WordCamp Montreal
WP Migrate DB Pro
July 18, 2016WordCamp Montreal
WP Migrate DB Pro
July 18, 2016WordCamp Montreal
Check your site…
July 18, 2016WordCamp Montreal
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
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
Resources
July 18, 2016WordCamp Montreal
Resources
• https://codex.wordpress.org/Moving_WordPress
• http://www.jasonbobich.com/web-design/
moving-wordpress-to-a-new-server/
July 18, 2016WordCamp Montreal
July 18, 2016WordCamp Montreal

Contenu connexe

Tendances

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
DERlab
 

Tendances (18)

Less is more: Getting Real About Content and Features
Less is more: Getting Real About Content and Features Less is more: Getting Real About Content and Features
Less is more: Getting Real About Content and Features
 
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
 
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
 
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
 
Tipping the scale - Eyal Eizenberg - Wix
Tipping the scale - Eyal Eizenberg - WixTipping the scale - Eyal Eizenberg - Wix
Tipping the scale - Eyal Eizenberg - Wix
 
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
Tipping the Scale - Eyal EizenbergTipping the Scale - Eyal Eizenberg
Tipping the Scale - Eyal 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)
 
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
 
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
 
PDF Generation in Rails with Prawn and Prawn-to: John McCaffrey
PDF Generation in Rails with Prawn and Prawn-to: John McCaffreyPDF Generation in Rails with Prawn and Prawn-to: John McCaffrey
PDF Generation in Rails with Prawn and Prawn-to: John McCaffrey
 
10 step guide to convert HTML to Wordpress
10 step guide to convert HTML to Wordpress10 step guide to convert HTML to Wordpress
10 step guide to convert HTML to Wordpress
 
Amazon.com's Web Services Opportunity
Amazon.com's Web Services OpportunityAmazon.com's Web Services Opportunity
Amazon.com's Web Services Opportunity
 
WordPress 4.7 と 今後の開発ロードマップ
WordPress 4.7 と 今後の開発ロードマップWordPress 4.7 と 今後の開発ロードマップ
WordPress 4.7 と 今後の開発ロードマップ
 
MEAN Stack
MEAN StackMEAN Stack
MEAN Stack
 
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
 
Escalando una PHP App con DB sharding - PHP Conference
Escalando una PHP App con DB sharding - PHP ConferenceEscalando una PHP App con DB sharding - PHP Conference
Escalando una PHP App con DB sharding - PHP Conference
 
Ruby on Rails Performance Tuning. Make it faster, make it better (WindyCityRa...
Ruby on Rails Performance Tuning. Make it faster, make it better (WindyCityRa...Ruby on Rails Performance Tuning. Make it faster, make it better (WindyCityRa...
Ruby on Rails Performance Tuning. Make it faster, make it better (WindyCityRa...
 

Similaire à On the Move - Migrations Made Simple

Similaire à On the Move - Migrations Made Simple (20)

Docker for Developers - PNWPHP 2016 Workshop
Docker for Developers - PNWPHP 2016 WorkshopDocker for Developers - PNWPHP 2016 Workshop
Docker for Developers - PNWPHP 2016 Workshop
 
Docker for PHP Developers - Jetbrains
Docker for PHP Developers - JetbrainsDocker for PHP Developers - Jetbrains
Docker for PHP Developers - Jetbrains
 
Rock Solid Deployment of Web Applications
Rock Solid Deployment of Web ApplicationsRock Solid Deployment of Web Applications
Rock Solid Deployment of Web Applications
 
Five ways of installing word press the famous 5 minute wordpress installation
Five ways of installing word press   the famous 5 minute wordpress installationFive ways of installing word press   the famous 5 minute wordpress installation
Five ways of installing word press the famous 5 minute wordpress installation
 
Using MAMP for Web Development
Using MAMP for Web DevelopmentUsing MAMP for Web Development
Using MAMP for Web Development
 
Failing at Scale - PNWPHP 2016
Failing at Scale - PNWPHP 2016Failing at Scale - PNWPHP 2016
Failing at Scale - PNWPHP 2016
 
Docker for PHP Developers (NomadPHP)
Docker for PHP Developers (NomadPHP)Docker for PHP Developers (NomadPHP)
Docker for PHP Developers (NomadPHP)
 
Using WordPress as a Backend for Your React Project
Using WordPress as a Backend for Your React ProjectUsing WordPress as a Backend for Your React Project
Using WordPress as a Backend for Your React Project
 
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
 
WordPress website backups – they're not optional
WordPress website backups – they're not optionalWordPress website backups – they're not optional
WordPress website backups – they're not optional
 
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
 
What is (not) WordPress
What is (not) WordPressWhat is (not) WordPress
What is (not) WordPress
 
GDI WordPress 1 January 2012
GDI WordPress 1 January 2012GDI WordPress 1 January 2012
GDI WordPress 1 January 2012
 
Scalable Django Architecture
Scalable Django ArchitectureScalable Django Architecture
Scalable Django Architecture
 
Last Month in PHP - May 2016
Last Month in PHP - May 2016Last Month in PHP - May 2016
Last Month in PHP - May 2016
 
WordPress Development with VVV, VV, and Vagrant
WordPress Development with VVV, VV, and VagrantWordPress Development with VVV, VV, and Vagrant
WordPress Development with VVV, VV, and Vagrant
 
Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)
Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)
Масштабируемая конфигурация Nginx, Игорь Сысоев (Nginx)
 
WordPress DK at DrupalCamp Copenhagen 2009
WordPress DK at DrupalCamp Copenhagen 2009WordPress DK at DrupalCamp Copenhagen 2009
WordPress DK at DrupalCamp Copenhagen 2009
 
Fluent 2018: Tracking Performance of the Web with HTTP Archive
Fluent 2018: Tracking Performance of the Web with HTTP ArchiveFluent 2018: Tracking Performance of the Web with HTTP Archive
Fluent 2018: Tracking Performance of the Web with HTTP Archive
 
php[architect] Summit Series DevOps 2013 - Rock solid deployment of PHP apps
php[architect] Summit Series DevOps 2013 - Rock solid deployment of PHP appsphp[architect] Summit Series DevOps 2013 - Rock solid deployment of PHP apps
php[architect] Summit Series DevOps 2013 - Rock solid deployment of PHP apps
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 

Dernier (20)

Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 

On the Move - Migrations Made Simple