Upgrade to Pro — share decks privately, control downloads, hide ads and more …

How to move a WordPress website

jklepatch
December 01, 2014

How to move a WordPress website

Step by Step tutorial on how to move your WordPress website with the plugin Duplicator (free and easy to use)

For more articles and tutorials about WordPress, check out my blog at: http://julienklepatch.com/blog

jklepatch

December 01, 2014
Tweet

More Decks by jklepatch

Other Decks in Programming

Transcript

  1. How to move a WordPress website? Taipei WordPress Meetup –

    December 2014 Julien Klepatch - julienklepatch.com / @jklepatch
  2. Summary • Overview of the migration process • Migration scenarios

    • The easy migration method with Duplicator • Other migration methods
  3. Summary • Overview of the migration process – Architecture of

    a WordPress website – Moving the database – Moving the php files – Installing WordPress on the new server • Migration scenarios • The easy migration method with Duplicator • Other migration methods
  4. Moving the database 1. Create a new database (new server)

    2. Export the old sql database (old server) 3. Run Search and replace for urls 4. Import the updated database (new server)
  5. Moving the php files • Then, we will move the

    php files: – Copy paste the root folder to the new server – Remove unecessary php file on new server (ex: project files) files
  6. Installing WordPress on the new server (1) • Update wp-config.php

    in root folder with new database credentials
  7. Installing WordPress on the new server (2) • Visit your

    website new url (e.g: www.mydomain.com) • Et voila ! You’re done
  8. Summary • Overview of the migration process • Migration scenarios

    – Migration scenario #1: from local to online server – Migration scenario #2: from server to server • The easy migration method with Duplicator • Other migration methods
  9. Migration scenario #1: from local to online server • Easiest

    scenario • Just follow typical procedure
  10. Migration scenario #2: from server to server • Step #1:

    from old online server to local • Step #2: from local to new online server ? Old online server New online server
  11. Summary • Overview of the migration process • Migration scenarios

    • The easy migration method with Duplicator – The duplicator plugin – Let’s install Duplicator – Create a new package – Create a new database – Transfer package files via ftp – Run WordPress install with Duplicator – Cleanup • Other migration methods
  12. The duplicator plugin • Duplicator allows you to – Migrate

    – Backup your website • Duplicator is: – Easy to use – Free – Available in the WordPress.org plugin directory – Very popular (900,000 + downloads)
  13. Let’s install Duplicator (1) • Step #1: go to your

    old website admin • Step #2: go to plugins=> AddNew
  14. Let’s install Duplicator (2) • Step #3: type duplicator in

    the top right corner and hit ‘enter’
  15. Let’s install Duplicator (3) • Step #3: find the ‘Duplicator’

    pane and click on ‘Install’, then ‘activate’
  16. Create a new package (2) • In the ‘Create New’

    view: – You can change the package name (optional) – Click on ‘Next’
  17. Create a new package (3) • Wait for duplicator to

    scan your website • When scan is complete, click on ‘build’
  18. Create a new package (5) • Once package has been

    built, click on ‘Installer’ and ‘Archive’
  19. Create a new database (1) • Go to your new

    server cPanel • Go to Databases > Create new database • Create a new database
  20. Create a new database (2) - New user - •

    Step #1: create a new user • Step #2: add user to the database (grant all privileges) Important: Remember the db name, user name and password
  21. Transfer package files via ftp (1) • Download and install

    a ftp client, e.g: filezilla (https://filezilla-project.org/) • Input your new server credentials and connect (go to your cPanel to create a ftp user if you don’t have any)
  22. Transfer package files via ftp (2) • Transfer installer.php and

    the .rar archive file we downloaded from Duplicator just before • Visit www.yourdomainname.com/installer.php to run the Duplicator WordPress install
  23. Run WordPress install with Duplicator (1) Input Database credentials here

    Tick ‘Create New Database’ option Check disclaimer acknowledgement Click ‘Run Deployment’
  24. Summary • Overview of the migration process • Migration scenarios

    • The easy migration method with Duplicator • Other migration methods
  25. Other methods • BackupBuddy Plugin (paying) • WordPress Move Plugin

    (free) • The hard way, with interconnecit search & replace script (https://interconnectit.com/products/search-and-replace-for-wordpress-databases/) • The very hard way, with a manual search & replace (be careful to serialized data)