{"id":8,"date":"2023-05-04T07:26:15","date_gmt":"2023-05-04T07:26:15","guid":{"rendered":"https:\/\/prabhatrai.in\/aio\/?p=8"},"modified":"2024-10-04T22:55:38","modified_gmt":"2024-10-04T17:25:38","slug":"how-to-easily-create-a-staging-site-for-wordpress-step-by-step","status":"publish","type":"post","link":"https:\/\/prabhatrai.in\/aio\/blog\/how-to-easily-create-a-staging-site-for-wordpress-step-by-step\/","title":{"rendered":"How to Easily Create a Staging Site for WordPress (Step by Step)"},"content":{"rendered":"\n<p>Do you want to create a staging site for WordPress but are not sure where to start?<\/p>\n\n\n\n<p>A WordPress staging site is a test site that you can use to \u201csafely\u201d make plugin updates and other changes before going live.<\/p>\n\n\n\n<p>In this step-by-step guide, we\u2019ll show you how to easily create a staging environment for your WordPress site. We will cover several different methods and most of them only require a few clicks.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn2.wpbeginner.com\/wp-content\/uploads\/2019\/04\/wordperss-staging-site-og.png\" alt=\"Creating a staging website for WordPress\" class=\"wp-image-159049\" title=\"Creating a staging website for WordPress\"\/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"aioseo-what-is-a-staging-site\">What is a Staging Site?<\/h4>\n\n\n\n<p>A staging site is a clone of your live website that is used for testing changes before making them live. Staging sites help you catch errors, so you don\u2019t end up breaking your live website.<\/p>\n\n\n\n<p>In the past, it used to be very difficult to set up a WordPress staging site, but now that has changed so even a non-technical person can do it.<\/p>\n\n\n\n<p>A lot of users install WordPress locally on their <a href=\"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-install-wordpress-on-your-windows-computer-using-wamp\/\">Windows<\/a> or <a href=\"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-install-wordpress-locally-on-mac-using-mamp\">Mac<\/a> computers to test changes. Once they\u2019re done with the updates, they simply upload those changes from <a href=\"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-move-wordpress-from-local-server-to-live-site\/\">localhost to the live server<\/a><\/p>\n\n\n\n<p>The biggest problem with this approach is what if something that worked on your localhost does not work on the live server?<\/p>\n\n\n\n<p>Often the local sites and live WordPress hosting servers are not running in the same environment.<\/p>\n\n\n\n<p>Since the staging site lives on your web hosting server, you can easily prevent all those errors because it runs the same server configuration as your live site.<\/p>\n\n\n\n<p>With that said, let\u2019s take a look at how to set up a staging site for WordPress.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"aioseo-how-to-easily-create-a-wordpress-staging-site\">How to Easily Create a WordPress Staging Site<\/h4>\n\n\n\n<p>There are multiple ways to create a staging site for WordPress. The easiest of them is to use your hosting provider\u2019s built-in staging site feature.<\/p>\n\n\n\n<p>Some of the <a href=\"https:\/\/www.wpbeginner.com\/wordpress-hosting\/\">best WordPress hosting companies<\/a> already offer 1-click staging websites. If your website is hosted with one of them, then you can easily create a staging site without any hassle.<\/p>\n\n\n\n<p>If you\u2019re not with one of these popular hosting solutions, then we also have a solution to help you create a WordPress staging site using a plugin (and even manually).<\/p>\n\n\n\n<p>For faster browsing, you can use the navigation below to jump to the section that\u2019s most applicable to you.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-create-staging-environment-for-a-wordpress-site\/#stagingbluehost\">Creating A Staging Site on Bluehost<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-create-staging-environment-for-a-wordpress-site\/#stagingsiteground\">Creating a Staging Site on SiteGround<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-create-staging-environment-for-a-wordpress-site\/#stagingwpengine\">Creating a Staging Site on WP Engine<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-create-staging-environment-for-a-wordpress-site\/#stagingplugin\">Creating A Staging Site using WordPress Plugin<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-create-staging-environment-for-a-wordpress-site\/#stagingmanually\">Create a Staging Site for WordPress Manually<\/a><\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"stagingbluehost\">Creating A Staging Site on Bluehost<\/h4>\n\n\n\n<p><a href=\"https:\/\/www.wpbeginner.com\/refer\/bluehost\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bluehost<\/a> is one of the best WordPress hosting companies. They offer a quick 1-click staging site solution that comes with all their plans.<\/p>\n\n\n\n<p>First, you need to log in to your WordPress site\u2019s admin area and go to <strong>Bluehost \u00bb Staging<\/strong> page.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2019\/04\/bluehost-staging-website.png\" alt=\"Creating a staging website on bBuehost\" class=\"wp-image-159051\" title=\"Creating a staging website on bBuehost\"\/><\/figure>\n\n\n\n<p>This will bring you to Bluehost\u2019s staging site wizard. Next, you need to click on the \u2018Create Staging Site\u2019 button to continue.<\/p>\n\n\n\n<p>Bluehost will now prepare the staging environment for your website. Once finished, you will see a success message and an option to switch between the production and staging sites.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2019\/04\/switch-to-staging.png\" alt=\"Switch to staging website\" class=\"wp-image-159052\" title=\"Switch to staging website\"\/><\/figure>\n\n\n\n<p>Simply click on the radio button next to the Staging site and Bluehost will switch to your staging website.<\/p>\n\n\n\n<p>Once switched, you will see a button on top of the screen indicating that you are working on the staging website.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn2.wpbeginner.com\/wp-content\/uploads\/2019\/04\/stagingenv-bluehost.png\" alt=\"Staging envronment Bluehost\" class=\"wp-image-159053\" title=\"Staging envronment Bluehost\"\/><\/figure>\n\n\n\n<p>You can go ahead and work on your website without worrying about it affecting your live site.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"aioseo-deploying-changes-from-staging-to-live-site-on-bluehost\"><strong>Deploying changes from staging to live site on Bluehost<\/strong><\/h4>\n\n\n\n<p>Once you are ready to push changes from staging to the live site, simply go to <strong>Bluehost \u00bb Staging<\/strong> page.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2019\/04\/bh-deploy-stagingtolive.png\" alt=\"Deploying changes from staging to live\" class=\"wp-image-159054\" title=\"Deploying changes from staging to live\"\/><\/figure>\n\n\n\n<p>From here, you\u2019ll see the deployment options drop-down menu next to your staging website. You can deploy only the files, only the database, or deploy all changes.<\/p>\n\n\n\n<p>If you\u2019re not sure, then click on the \u2018Deploy All Changes\u2019 button to continue.<\/p>\n\n\n\n<p>This will bring up a popup where you will be asked to confirm that you want to deploy the staging site to the production site. Click on \u2018Deploy\u2019 button to continue.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2019\/04\/deployallchanges.png\" alt=\"Confirm deployment\" class=\"wp-image-159055\" title=\"Confirm deployment\"\/><\/figure>\n\n\n\n<p>Bluehost will now start deploying your staging site to the live site. Depending on the size of your website, this may take a while.<\/p>\n\n\n\n<p>The pop-up will automatically disappear when deployment is over and you\u2019ll see a success message.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn2.wpbeginner.com\/wp-content\/uploads\/2019\/04\/switchbacktoproduction.png\" alt=\"Switch back to production website\" class=\"wp-image-159056\" title=\"Switch back to production website\"\/><\/figure>\n\n\n\n<p>You can now switch back to your live website to see your changes in action by clicking on the Radio button next to the Production site URL.<\/p>\n\n\n\n<p><strong>Cloning Production Site to Staging<\/strong><\/p>\n\n\n\n<p>Now, as you switch back to the production website any changes you make there are not automatically synced to your staging website.<\/p>\n\n\n\n<p>In the future, if you want to test more things on your staging website you\u2019ll need to duplicate your site.<\/p>\n\n\n\n<p>Simply go to the <strong>Bluehost \u00bb Staging<\/strong> page and click on the \u2018Clone to staging\u2019 button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2019\/04\/clonetostaging.png\" alt=\"Clone to staging\" class=\"wp-image-159057\" title=\"Clone to staging\"\/><\/figure>\n\n\n\n<p><a rel=\"noreferrer noopener\" target=\"_blank\" href=\"https:\/\/www.wpbeginner.com\/refer\/bluehost\/\">Bluehost<\/a> will then clone the latest changes to your live website to your staging website. After that, you can switch to the staging website for testing and development.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"stagingsiteground\">Creating a Staging Site on SiteGround<\/h4>\n\n\n\n<p><a href=\"https:\/\/www.wpbeginner.com\/refer\/siteground\/\" target=\"_blank\" rel=\"noreferrer noopener\">SiteGround<\/a> is another top WordPress hosting company offering a 1-click staging feature with their GrowBig and GoGeek plans.<\/p>\n\n\n\n<p>If your website is hosted with <a rel=\"noreferrer noopener\" target=\"_blank\" href=\"https:\/\/www.wpbeginner.com\/refer\/siteground\/\">SiteGround<\/a>, then this is how you would set up a staging website.<\/p>\n\n\n\n<p>First, you need to log in to your SiteGround dashboard and switch to the Websites tab. From here you need to choose the Site Tools below your website.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2019\/04\/siteground-dashboard.png\" alt=\"SiteGround dashboard\" class=\"wp-image-159062\" title=\"SiteGround dashboard\"\/><\/figure>\n\n\n\n<p>On the next screen, you need to click on <strong>WordPress \u00bb Staging<\/strong> menu from the left column.<\/p>\n\n\n\n<p>From here, you need to select your website and then provide a name for your staging copy.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2019\/04\/sg-makestagingcopy.png\" alt=\"SiteGround make a staging copy of your website\" class=\"wp-image-159063\" title=\"SiteGround make a staging copy of your website\"\/><\/figure>\n\n\n\n<p>Click on the \u2018Create\u2019 button to continue and Siteground will create a staging copy of your website.<\/p>\n\n\n\n<p>After that, you need to click on the \u2018Go to protected URLs\u2019 button so that you can password-protect your staging website and keep it private.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2019\/04\/sg-stagingcreated.png\" alt=\"Siteground staging site created\" class=\"wp-image-159059\" title=\"Siteground staging site created\"\/><\/figure>\n\n\n\n<p>On the next screen, Siteground will automatically fill in the URL and path for your staging website.<\/p>\n\n\n\n<p>You need to enter the username and password that you want to use to protect your staging site.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2019\/04\/protect-stagingsite.png\" alt=\"Protect staging website\" class=\"wp-image-159060\" title=\"Protect staging website\"\/><\/figure>\n\n\n\n<p>Click on the Protect button to save your settings.<\/p>\n\n\n\n<p>You can now go back to <strong>WordPress \u00bb Staging<\/strong> page and click on the login to Admin Panel button next to your staging website.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2019\/04\/logintostagingwebsite.png\" alt=\"Login to your staging website\" class=\"wp-image-159061\" title=\"Login to your staging website\"\/><\/figure>\n\n\n\n<p>SiteGround will now open the WordPress admin area of your staging website. You can test your changes on this staging website.<\/p>\n\n\n\n<p><strong>Deploy Changes Back to Your Live Website<\/strong><\/p>\n\n\n\n<p>Once you have tried your changes on the staging website, you may want to merge them to your live website.<\/p>\n\n\n\n<p>SiteGround makes this easy too.<\/p>\n\n\n\n<p>Simply click on <strong>WordPress \u00bb Staging<\/strong> menu from the left column. Then click on the three-dot menu next to your staging site under the \u2018Manage Staging Copies\u2019 section.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2019\/04\/deployall.png\" alt=\"Deploy all changes from staging to live website\" class=\"wp-image-159064\" title=\"Deploy all changes from staging to live website\"\/><\/figure>\n\n\n\n<p>The menu will show you two deployment options. You can either choose \u2018Full Deploy\u2019 or \u2018Custom Deploy\u2019 option.<\/p>\n\n\n\n<p>The \u2018Full Deploy\u2019 option merges everything from staging website to your live website. \u2018Custom deploy\u2019 allows you to select which files or data you want to merge.<\/p>\n\n\n\n<p>If you are unsure, then choose \u2018Full Deploy\u2019 option.<\/p>\n\n\n\n<p>SiteGround will then copy the staging site to your live website.<\/p>\n\n\n\n<p><strong>Merging Live to Your Staging Website<\/strong><\/p>\n\n\n\n<p>Changes you make to your live website are not automatically copied to your staging website, though.<\/p>\n\n\n\n<p>Each time you need to work on your staging website, repeat the process above to create a fresh staging website.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"stagingwpengine\">Creating a Staging Site on WP Engine<\/h4>\n\n\n\n<p><a href=\"https:\/\/www.wpbeginner.com\/refer\/wpengine\/\" target=\"_blank\" rel=\"noreferrer noopener\">WP Engine<\/a> is the <a href=\"https:\/\/www.wpbeginner.com\/managed-wordpress-hosting\/\">best WordPress managed hosting<\/a> company in the world. Managed WordPress hosting is a concierge service for your WordPress site where the hosting provider takes care of updates, backups, security, and performance.<\/p>\n\n\n\n<p>WP Engine offers a one-click staging solution with all their plans. If you are using WP Engine to host your website, then this is how you would set up a staging environment for your site.<\/p>\n\n\n\n<p>First, you need to log in to your WP Engine dashboard. Next, go to the \u2018Sites\u2019 page and select your website by clicking on it.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2019\/04\/wpengine-sites-1.png\" alt=\"WP Engine sites\" class=\"wp-image-160384\" title=\"WP Engine sites\"\/><\/figure>\n\n\n\n<p>This will bring you to your website dashboard.<\/p>\n\n\n\n<p>Now, you need to click on the \u2018Add Staging\u2019 link from the left column or select it under your site name at the top.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2019\/04\/wpengine-add-staging.png\" alt=\"Click to add staging environment in WP Engine\" class=\"wp-image-160383\" title=\"Click to add staging environment in WP Engine\"\/><\/figure>\n\n\n\n<p>This will bring you to the \u2018Add Environment\u2019 screen.<\/p>\n\n\n\n<p>You\u2019ll be asked to choose how you wish to proceed with your staging environment.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2019\/04\/copyexistingenvironment.png\" alt=\"Copy existing environment to staging site\" class=\"wp-image-160385\" title=\"Copy existing environment to staging site\"\/><\/figure>\n\n\n\n<p>Here is what each of these options does:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u2018Start with a new blank site\u2019 creates a new empty site.<\/li>\n\n\n\n<li>\u2018Start with a guided experience\u2019 creates a new site with a guided experience and demo content.<\/li>\n\n\n\n<li>\u2018Copy an existing environment to this site\u2019 will copy your production or development environment to this site (e.g. copy your live site to this environment).<\/li>\n\n\n\n<li>\u2018Move an existing environment\u2019 moves an environment to this site (e.g. move the development environment to the Staging)<\/li>\n\n\n\n<li>\u2018Start with a WooCommerce site\u2019 creates a new WordPress site with WooCommerce pre-installed.<\/li>\n<\/ul>\n\n\n\n<p>Since you want to create a staging copy of our live website, you\u2019ll need to click on the \u2018Copy an existing environment to this site\u2019 option.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2019\/04\/choose-environment.png\" alt=\"Choose environment you wish to copy\" class=\"wp-image-160386\" title=\"Choose environment you wish to copy\"\/><\/figure>\n\n\n\n<p>After choosing an environment choose the latest backup you want to copy from and then click on the \u2018Next\u2019 button to continue.<\/p>\n\n\n\n<p>Now, you\u2019ll need to provide a name for your staging site. This name will be used in your staging site URL. After that, choose STG (staging) as your environment type.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn2.wpbeginner.com\/wp-content\/uploads\/2019\/04\/wpengine-staging-name.png\" alt=\"Staging site name\" class=\"wp-image-160387\" title=\"Staging site name\"\/><\/figure>\n\n\n\n<p>Click on the \u2018Create Environment\u2019 button to continue.<\/p>\n\n\n\n<p>WP Engine will now create a staging site for you. After that, you will be redirected to your Staging environment dashboard.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn2.wpbeginner.com\/wp-content\/uploads\/2019\/04\/passwordprotect-1.png\" alt=\"Password protect your staging environment\" class=\"wp-image-160388\" title=\"Password protect your staging environment\"\/><\/figure>\n\n\n\n<p>Next, you need to click on the Padlock button to enable password protection for your staging site.<\/p>\n\n\n\n<p>After that, you need to switch to the \u2018Utilities\u2019 tab to copy your staging site username and password.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2019\/04\/stagingpassword.png\" alt=\"staging site password\" class=\"wp-image-160390\" title=\"staging site password\"\/><\/figure>\n\n\n\n<p>You can now click on the \u2018WP Admin\u2019 button at the top to log in to your staging website.<\/p>\n\n\n\n<p>Feel free to make changes and try out features on the staging website just as you would in a typical WordPress site you install anywhere else.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2019\/04\/logintostaging-wpengine.png\" alt=\"login to staging website\" class=\"wp-image-160523\" title=\"login to staging website\"\/><\/figure>\n\n\n\n<p><strong>Deploy Changes From Staging to Live Website on WP Engine<\/strong><\/p>\n\n\n\n<p>Want to merge changes you made on the staging website to your live website?<\/p>\n\n\n\n<p>Simply click on the \u2018Copy Environment\u2019 button to begin deployment.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2019\/04\/copyenvironment-1.png\" alt=\"Copy staging environment\" class=\"wp-image-160525\" title=\"Copy staging environment\"\/><\/figure>\n\n\n\n<p>This will bring you to the options page. From here, you need to choose your source and destination environments for the copy.<\/p>\n\n\n\n<p>Here you\u2019ll select your staging website as the source environment and your production or live website as the destination environment.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2019\/04\/deploy-options.png\" alt=\"Deploy options\" class=\"wp-image-160528\" title=\"Deploy options\"\/><\/figure>\n\n\n\n<p>You can choose what you want to copy. For instance, you can copy all database tables and files, specific files and database tables, or only the file system.<\/p>\n\n\n\n<p><strong>Note:<\/strong> If you choose to copy everything then you will lose any data stored on your live website after you used it to make the staging environment. This may include important data such as new posts, pages, customers, and orders. So it\u2019s a good idea to <a href=\"https:\/\/www.wpbeginner.com\/plugins\/how-to-backup-your-wordpress-site-to-google-drive-free-and-easy\/\">run a backup<\/a> of your live site before deploying from staging.<\/p>\n\n\n\n<p>Next, click on the \u2018Review and Confirm\u2019 button to begin deployment. It will take a while to copy everything to your live website.<\/p>\n\n\n\n<p>You will get an email notification when the process is complete.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"stagingplugin\">Creating A Staging Site using WordPress Plugin<\/h4>\n\n\n\n<p>If your <a href=\"https:\/\/www.wpbeginner.com\/wordpress-hosting\/\">WordPress hosting<\/a> company does not provide a staging site feature, then you can still create a staging website using a WordPress plugin.<\/p>\n\n\n\n<p>There are some disadvantages to using this method.<\/p>\n\n\n\n<p>First, a plugin would have limited control over your hosting server. This is why it may not always give the best results.<\/p>\n\n\n\n<p>Secondly, the plugin we will be using will store your staging site on its own servers. If you are concerned about privacy and data protection, then this may not be the ideal situation for you.<\/p>\n\n\n\n<p>Lastly, the plugin has several known incompatibilities. Please check their incompatibilities page to make sure that your website is compatible.<\/p>\n\n\n\n<p>That being said, let\u2019s see how to create a staging WordPress site using a WordPress plugin.<\/p>\n\n\n\n<p>The first thing that you need to do is <a href=\"https:\/\/prabhatrai.in\/aio\/uncategorized\/how-to-install-a-wordpress-plugin-step-by-step-for-beginners\">install and activate the WP Stagecoach plugin<\/a>. For more details, see our step-by-step guide on <a href=\"http:\/\/www.wpbeginner.com\/beginners-guide\/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners\/\">how to install a WordPress plugin<\/a>.<\/p>\n\n\n\n<p>Upon activation, the plugin will add a new menu item labeled <strong>WP Stagecoach<\/strong> to your admin bar. Clicking on it will take you to the plugin\u2019s settings page.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn2.wpbeginner.com\/wp-content\/uploads\/2019\/04\/wpstagecoach-apikeys.png\" alt=\"Enter WPStagecoach API keys\" class=\"wp-image-160533\" title=\"Enter WPStagecoach API keys\"\/><\/figure>\n\n\n\n<p>You will need to enter your WP Stagecoach username and the API key which you can find under your account on the plugin website.<\/p>\n\n\n\n<p>After that, you need to visit the <strong>WP Stagecoach \u00bb WP Stagecoach<\/strong> page and choose a name for your staging site. This name will also be used as the subdomain of your WordPress staging website.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn2.wpbeginner.com\/wp-content\/uploads\/2019\/04\/connect-wpstagecoach.png\" alt=\"Connect WP Stagecoach\" class=\"wp-image-160616\" title=\"Connect WP Stagecoach\"\/><\/figure>\n\n\n\n<p>Don\u2019t forget to check the box next to the \u2018Password protect the staging site\u2019 option. It will protect your staging website from public view and search engines.<\/p>\n\n\n\n<p>Click on the \u2018Ride the Stagecoach\u2019 button to continue.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn2.wpbeginner.com\/wp-content\/uploads\/2019\/04\/wpsc-progress.png\" alt=\"WP Stagecoach progress\" class=\"wp-image-160617\" title=\"WP Stagecoach progress\"\/><\/figure>\n\n\n\n<p>The plugin will now create a backup of your WordPress files and database to export them for your staging site.<\/p>\n\n\n\n<p>It may take a while depending on the size of your WordPress website.<\/p>\n\n\n\n<p>Once finished, you will see the link to your staging site and its admin area.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2019\/04\/wpsc-finished.png\" alt=\"WP Stagecoach fiinished creating a staging site\" class=\"wp-image-160618\" title=\"WP Stagecoach fiinished creating a staging site\"\/><\/figure>\n\n\n\n<p>You can click the link to visit your staging site and start working on it.<\/p>\n\n\n\n<p>You\u2019ll notice a bright orange message in the <a href=\"https:\/\/www.wpbeginner.com\/wp-tutorials\/how-to-disable-wordpress-admin-bar-for-all-users-except-administrators\/\">admin bar<\/a> at the top indicating that you are working on your staging site.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2019\/04\/wpsc-staging-preview.png\" alt=\"WPSC staging preview\" class=\"wp-image-160619\" title=\"WPSC staging preview\"\/><\/figure>\n\n\n\n<p><strong>Deploying Staging Site to Live Using WP Stagecoach<\/strong><\/p>\n\n\n\n<p>Once you are ready to import changes to your live site, head over to the <strong>WP Stagecoach \u00bb Import Changes<\/strong> page and click on the check for changes button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn2.wpbeginner.com\/wp-content\/uploads\/2019\/04\/checkforchanges.png\" alt=\"Check for changes\" class=\"wp-image-160620\" title=\"Check for changes\"\/><\/figure>\n\n\n\n<p>The plugin will now check for changes on your staging site and then show you options to import them.<\/p>\n\n\n\n<p>You can choose from all changes, file changes, or database changes.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2019\/04\/changesoptions.png\" alt=\"Changes options\" class=\"wp-image-160621\" title=\"Changes options\"\/><\/figure>\n\n\n\n<p>The plugin will show you the progress of the import and will notify you when it is done.<\/p>\n\n\n\n<p>You can now test your live site to see if all changes were successfully imported.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"stagingmanually\">Create a Staging Site for WordPress Manually<\/h4>\n\n\n\n<p>This method will teach you to manually create a staging site for your WordPress install. It is for advanced users and requires more work than other methods described above.<\/p>\n\n\n\n<p>Another disadvantage of this method is that your website will be temporarily unavailable when deploying changes back from staging to the live server.<\/p>\n\n\n\n<p>That being said, let\u2019s see how to manually create a staging environment for your WordPress site.<\/p>\n\n\n\n<p>First, you need to create a subdomain for your staging website. Go to your hosting account\u2019s dashboard and click on the \u2018Subdomains\u2019 link located under the domains section.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn2.wpbeginner.com\/wp-content\/uploads\/2019\/04\/stagingsubdomain.png\" alt=\"Staging subdomain\" class=\"wp-image-160622\" title=\"Staging subdomain\"\/><\/figure>\n\n\n\n<p><strong>Note: <\/strong>We\u2019re using <a href=\"https:\/\/www.wpbeginner.com\/hosting\/bluehost\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bluehost<\/a> in our example screenshot, so your screen may look different.<\/p>\n\n\n\n<p>Provide a name for your <a href=\"https:\/\/www.wpbeginner.com\/glossary\/subdomain\/\">subdomain<\/a> (such as staging.example.com), and then click on the create button.<\/p>\n\n\n\n<p>Your hosting control panel will now add your subdomain, which you can use to import your live WordPress site.<\/p>\n\n\n\n<p>Next, you need to install and activate the <a href=\"https:\/\/wordpress.org\/plugins\/duplicator\/\" target=\"_blank\" rel=\"noreferrer noopener\">Duplicator<\/a> plugin on your live site.<\/p>\n\n\n\n<p>Upon activation, you need to click on the <strong>Duplicator<\/strong> menu in your WordPress admin sidebar and click on the \u2018Create New\u2019 button under <strong>Packages<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2019\/04\/duplicator-package-new.png\" alt=\"Create new Duplicator package\" class=\"wp-image-160623\" title=\"Create new Duplicator package\"\/><\/figure>\n\n\n\n<p>After that, you will be asked to click on the \u2018Next\u2019 button to continue. Duplicator will now run the website duplicator wizard.<\/p>\n\n\n\n<p>First, it will run some tests to see if everything is in order. If all items are marked \u2018Good,\u2019 then click on the \u2018Build\u2019 button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2019\/04\/duplicator-build-package.png\" alt=\"Duplicator build package button\" class=\"wp-image-160624\" title=\"Duplicator build package button\"\/><\/figure>\n\n\n\n<p>The plugin will now start creating a Duplicator package for your WordPress site. This process may take a few minutes depending on the size of your website.<\/p>\n\n\n\n<p>Once finished, you\u2019ll see download options for Installer and the Archive package. You need to click on the \u2018Download Both Files\u2019 button to download both files on your computer.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2019\/04\/download-duplicator-package.png\" alt=\"Download Duplicator package and installer to your computer\" class=\"wp-image-160625\" title=\"Download Duplicator package and installer to your computer\"\/><\/figure>\n\n\n\n<p>You\u2019ll need to upload both of these files to the file directory of the subdomain you just created. For details, see our guide on <a href=\"https:\/\/www.wpbeginner.com\/beginners-guide\/how-to-use-ftp-to-upload-files-to-wordpress-for-beginners\/\">how to use FTP to upload files to your WordPress website<\/a>.<\/p>\n\n\n\n<p>Next, your new staging WordPress site will need a new database. Let\u2019s create one.<\/p>\n\n\n\n<p>Head over to your WordPress hosting account\u2019s control panel and click on \u2018MySQL Databases\u2019 icon located under the \u2018Databases\u2019 section.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2019\/04\/mysqldb-bluehost.png\" alt=\"MySQL database\" class=\"wp-image-160626\" title=\"MySQL database\"\/><\/figure>\n\n\n\n<p>If you are not using Bluehost, then your WordPress hosting environment may look a bit different. Don\u2019t worry and just look for the Databases section.<\/p>\n\n\n\n<p>On the next screen, provide a name for your database and then click on the create database button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn2.wpbeginner.com\/wp-content\/uploads\/2019\/04\/staging-site-db-1.png\" alt=\"Staging site database\" class=\"wp-image-160628\" title=\"Staging site database\"\/><\/figure>\n\n\n\n<p>Next, you need to create a MySQL user for your database.<\/p>\n\n\n\n<p>Scroll down to the MySQL Users section and provide a username and password for your new database user.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2019\/04\/db-user-details.png\" alt=\"Database username and password\" class=\"wp-image-160629\" title=\"Database username and password\"\/><\/figure>\n\n\n\n<p>Now you need to give this user permission to access and modify the database you created earlier.<\/p>\n\n\n\n<p>Simply scroll down to the \u2018Add user to database\u2019 section and select your database and the user you just created.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.wpbeginner.com\/wp-content\/uploads\/2019\/04\/addusertodb-1.png\" alt=\"Add user to database\" class=\"wp-image-160630\" title=\"Add user to database\"\/><\/figure>\n\n\n\n<p>After that, click on the \u2018Add\u2019 button to continue.<\/p>\n\n\n\n<p>You will be asked to select privileges for the user. Go ahead and select \u2018All Privileges\u2019 checkbox and then click on the \u2018Make changes\u2019 button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2019\/04\/dbpriviledges.png\" alt=\"Give priviledges\" class=\"wp-image-160631\" title=\"Give priviledges\"\/><\/figure>\n\n\n\n<p>Now your database is ready to be used for your staging website.<\/p>\n\n\n\n<p>Next, you need to open a new browser tab and visit enter the subdomain of your staging site like this:<\/p>\n\n\n\n<figure class=\"wp-block-embed\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/yoursubdomain.example.com\/installer.php\n<\/div><\/figure>\n\n\n\n<p>Don\u2019t forget to replace <code>yoursubdomain<\/code> with the actual subdomain and <code>example.com<\/code> with your own domain name.<\/p>\n\n\n\n<p>This will launch the Duplicator installer wizard.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn2.wpbeginner.com\/wp-content\/uploads\/2019\/04\/enter-db-info.png\" alt=\"Enter database details\" class=\"wp-image-160632\" title=\"Enter database details\"\/><\/figure>\n\n\n\n<p>Under the \u2018Setup\u2019 section, the installer will ask you to enter your WordPress database information.<\/p>\n\n\n\n<p>Your host will likely be localhost. After that, you will enter the details of the database you created for your new domain name in the earlier step.<\/p>\n\n\n\n<p>Click on the \u2018Validate\u2019 button to make sure that Duplicator can connect to your database.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2019\/04\/duplicator-allcheck-next.png\" alt=\"Duplicator validated\" class=\"wp-image-160633\" title=\"Duplicator validated\"\/><\/figure>\n\n\n\n<p>Once done, click on the \u2018Next\u2019 button to continue.<\/p>\n\n\n\n<p>Duplicator will now unpack your WordPress database and files and import them to your staging site.<\/p>\n\n\n\n<p>Once finished, you will see a success message.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2019\/04\/finished-duplicator.png\" alt=\"Duplicator wizard finish\" class=\"wp-image-160634\" title=\"Duplicator wizard finish\"\/><\/figure>\n\n\n\n<p>You can click on the \u2018Admin Login\u2019 button to enter the WordPress admin area of your website on the new staging site.<\/p>\n\n\n\n<p>Now you have your staging site set up. You can protect it by adding password protection to the subdomain.<\/p>\n\n\n\n<p>Head over to your hosting account\u2019s cPanel dashboard and click on the \u2018Directory Privacy\u2019 icon.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn3.wpbeginner.com\/wp-content\/uploads\/2019\/04\/dirprivacy.png\" alt=\"Directory privacy\" class=\"wp-image-160635\" title=\"Directory privacy\"\/><\/figure>\n\n\n\n<p>Next, you need to select your subdomain folder and then select the option to \u2018password protect this directory\u2019 checkbox.<\/p>\n\n\n\n<p>You will be asked to provide a name for this setting, and then enter a username and password.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn4.wpbeginner.com\/wp-content\/uploads\/2019\/04\/psswordprotect-cpanel.png\" alt=\"Password protect staging site\" class=\"wp-image-160636\" title=\"Password protect staging site\"\/><\/figure>\n\n\n\n<p>Click on the save button to store your settings. Your staging site will now be hidden behind password protection, keeping it out of search engines\u2019 hands and the public\u2019s eyes.<\/p>\n\n\n\n<p>You can now work on your staging site and make any changes you want.<\/p>\n\n\n\n<p><strong>Manually Deploy Staging Site to Live<\/strong><\/p>\n\n\n\n<p>After you are ready to deploy changes from your staging site to the live server, you will follow the same steps described above.<\/p>\n\n\n\n<p>Simply create a new Duplicator package on your staging site and download the Installer and Archive files to your computer (See instructions above).<\/p>\n\n\n\n<p>Next, you need to head over to your live site and create a <a href=\"https:\/\/www.wpbeginner.com\/plugins\/7-best-wordpress-backup-plugins-compared-pros-and-cons\/\">complete WordPress backup<\/a> (you can use Duplicator to create a complete backup as well).<\/p>\n\n\n\n<p>Once you are done, you will need to delete all WordPress files and folders from your live website. This means your WordPress site will be down for a while.<\/p>\n\n\n\n<p>Finally, follow the instructions above to run the Duplicator installer wizard to import the staging site to the live server.<\/p>\n\n\n\n<p>As you can see, the last method is not the best method at all. There are many ways during the process that you can damage your site.<\/p>\n\n\n\n<p>We suggest avoiding this method at all costs unless you have no other choice. We recommend using a reliable hosting provider like <a href=\"https:\/\/www.wpbeginner.com\/refer\/bluehost\/\" target=\"_blank\" rel=\"noreferrer noopener\">Bluehost<\/a>, <a href=\"https:\/\/www.wpbeginner.com\/refer\/siteground\/\" target=\"_blank\" rel=\"noreferrer noopener\">SiteGround<\/a>, or WP Engine that offers built-in staging site features.<\/p>\n\n\n\n<p>We hope this article helped you learn how to easily create a staging environment for your WordPress site. If you run into any issues, check out our ultimate guide to fixing the <a href=\"https:\/\/www.wpbeginner.com\/common-wordpress-errors-and-how-to-fix-them\/\">most common WordPress errors<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Do you want to create a staging site for WordPress but are not sure where to start? A WordPress staging site is a test site that you can use to \u201csafely\u201d make plugin updates and other changes before going live. In this step-by-step guide, we\u2019ll show you how to easily create a staging environment for&hellip; <a class=\"more-link\" href=\"https:\/\/prabhatrai.in\/aio\/blog\/how-to-easily-create-a-staging-site-for-wordpress-step-by-step\/\">Continue reading <span class=\"screen-reader-text\">How to Easily Create a Staging Site for WordPress (Step by Step)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/prabhatrai.in\/aio\/wp-json\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prabhatrai.in\/aio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prabhatrai.in\/aio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prabhatrai.in\/aio\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prabhatrai.in\/aio\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":19,"href":"https:\/\/prabhatrai.in\/aio\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"predecessor-version":[{"id":1246,"href":"https:\/\/prabhatrai.in\/aio\/wp-json\/wp\/v2\/posts\/8\/revisions\/1246"}],"wp:attachment":[{"href":"https:\/\/prabhatrai.in\/aio\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prabhatrai.in\/aio\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prabhatrai.in\/aio\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}