{"id":24595,"date":"2021-07-30T19:45:27","date_gmt":"2021-07-31T00:45:27","guid":{"rendered":"https:\/\/matthewjrodgers.com\/?p=24595"},"modified":"2024-12-04T15:44:42","modified_gmt":"2024-12-04T20:44:42","slug":"how-to-create-a-local-test-environment-of-a-wordpress-website-using-the-duplicator-plugin-and-xampp","status":"publish","type":"post","link":"https:\/\/matthewjrodgers.com\/?p=24595","title":{"rendered":"How to create a local test environment of a WordPress website using the Duplicator plugin and XAMPP"},"content":{"rendered":"\n<p class=\"has-medium-font-size\">Step 1: Create your site backup using Duplicator.<\/p>\n\n\n\n<p>    Follow step two at <a rel=\"noreferrer noopener\" href=\"https:\/\/www.isitwp.com\/switch-one-web-host-another-without-downtime-step-by-step\/#backup\" target=\"_blank\">this<\/a> website.<\/p>\n\n\n\n<p class=\"has-medium-font-size\">Step 2: Import your WordPress site to your local computer.<\/p>\n\n\n\n<p>    Create a folder for your WordPress site under C:\\xampp\\htdocs. I called mine mywordpresstest.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"871\" height=\"673\" src=\"https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-30-113022-1.png\" alt=\"\" class=\"wp-image-24597\" srcset=\"https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-30-113022-1.png 871w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-30-113022-1-300x232.png 300w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-30-113022-1-768x593.png 768w, https:\/\/matthewjrodgers.com\/wp-content\/uploads\/2021\/07\/Screenshot-2021-07-30-113022-1-400x309.png 400w\" sizes=\"(max-width: 871px) 100vw, 871px\" \/><\/figure><\/div>\n\n\n<p class=\"has-medium-font-size\">Step 3: Create a database on your local computer.<\/p>\n\n\n\n<ol>\n<li>Start MySQL in XAMPP.<\/li>\n\n\n\n<li>Start Apache server in XAMPP.<\/li>\n\n\n\n<li>Click the Admin button for MySQL.<\/li>\n\n\n\n<li>Login to phpMyAdmin.<\/li>\n\n\n\n<li>Click on the Databases tab.<\/li>\n\n\n\n<li>Enter a database name of your choosing and leave the default collation.<\/li>\n\n\n\n<li>Click Create.<\/li>\n\n\n\n<li>Click the User account tab.<\/li>\n\n\n\n<li>Click the &#8220;Add user account&#8221; link.<\/li>\n\n\n\n<li>Create a username and password and leave the rest at defaults.<\/li>\n\n\n\n<li>Click Go.<\/li>\n\n\n\n<li>Click on the privileges tab at the top.<\/li>\n\n\n\n<li>At the bottom click &#8220;Add user account&#8221;<\/li>\n\n\n\n<li>Create a username and password and leave the rest at defaults.<\/li>\n\n\n\n<li>Under the &#8220;Database for user account section&#8221; ensure the &#8220;Grant all privileges on database&#8221; for your database is clicked. Example, &#8220;Grant all privileges on database mywordpresstest.&#8221;<\/li>\n\n\n\n<li>Click Go.<\/li>\n<\/ol>\n\n\n\n<p class=\"has-medium-font-size\">Step 4: Start the duplicator migration process<\/p>\n\n\n\n<p>    In your web browser, go to localhost\/mywordpresstest\/installer.php to run the installer.<\/p>\n\n\n\n<p>Then follow step 6 <a href=\"https:\/\/www.isitwp.com\/switch-one-web-host-another-without-downtime-step-by-step\/#migration\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>. Note: after duplicator is finished it says to log in to your site at the &#8220;Test Site&#8221; step. Use the same login that you use on your public website.<\/p>\n\n\n\n<p>And that&#8217;s it for this post. Thank you for reading!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Step 1: Create your site backup using Duplicator. Follow step two at this website. Step 2: Import your WordPress site to your local computer. Create a folder for your WordPress site under C:\\xampp\\htdocs. I called mine mywordpresstest. Step 3: Create a database on your local computer. Step 4: Start the duplicator migration process In your&hellip; <a href=\"https:\/\/matthewjrodgers.com\/?p=24595\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">How to create a local test environment of a WordPress website using the Duplicator plugin and XAMPP<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[5,4],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=\/wp\/v2\/posts\/24595"}],"collection":[{"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=24595"}],"version-history":[{"count":3,"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=\/wp\/v2\/posts\/24595\/revisions"}],"predecessor-version":[{"id":24702,"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=\/wp\/v2\/posts\/24595\/revisions\/24702"}],"wp:attachment":[{"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=24595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=24595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/matthewjrodgers.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=24595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}