{"id":18086,"date":"2019-05-24T12:52:08","date_gmt":"2019-05-24T12:52:08","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=18086"},"modified":"2026-03-10T09:37:02","modified_gmt":"2026-03-10T09:37:02","slug":"wordpress-staging-environment","status":"publish","type":"post","link":"\/ph\/tutorials\/wordpress-staging-environment","title":{"rendered":"How to create a WordPress staging site using hPanel, A plugin, and a subdomain"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>WordPress websites have a significant advantage &ndash; the possibility of creating a staging site for testing changes and updates before going live. As a duplicate of your live site, a staging environment lets you experiment with different designs, plugins, and content without affecting the user experience.<\/p><p>In this WordPress guide, we&rsquo;ll cover three methods to create a staging site &#8210; using Hostinger&rsquo;s built-in staging tool, a staging plugin, and a subdomain website clone. We&rsquo;ll also share tips for using and removing the staging site after updating your live WordPress site.<\/p><p>For those new to testing environments, we&rsquo;ll go over their benefits and how they help enhance your website&rsquo;s performance and user experience at the end of the article.<\/p><p>\n\n\n<div class=\"protip\">\n                    <h2 class=\"featured-snippet title\">What Is a WordPress Staging Environment?<\/h2>\n                    <p> A WordPress staging environment is a private, test version of your entire site. With a staging website, you can safely test changes privately before implementing them on the live website.<\/p>\n                <\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-set-up-a-wordpress-staging-environment\">How to Set up a WordPress Staging Environment<\/h2><p>Regardless of your preferred method, keep in mind that publishing the staging content replaces files and databases on your original site. <a href=\"\/ph\/tutorials\/backup-wordpress\">Back up your entire WordPress website<\/a> before deploying staging changes to avoid any potential data loss.<\/p><p>Hostinger users can create and manage website backups in hPanel via <strong>Files <\/strong>&rarr; <strong>Backups<\/strong>. If your web host doesn&rsquo;t have a backup feature, various backup plugins are available to secure your data.<\/p><h3 class=\"wp-block-heading\" id=\"h-how-to-create-a-wordpress-staging-environment-using-hostinger-s-staging-tool\">How to Create a WordPress Staging Environment Using Hostinger&rsquo;s Staging Tool<\/h3><p>Hostinger&rsquo;s WordPress Business and <a href=\"\/ph\/cloud-hosting\">cloud hosting<\/a> users can create staging sites from hPanel, their hosting account&rsquo;s dashboard. This method is beginner-friendly, as you don&rsquo;t need to install additional tools.<\/p><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a href=\"\/ph\/wordpress-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/06\/New-WP_in-text-banner-1024x300.png\" alt=\"\" class=\"wp-image-111781\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/06\/New-WP_in-text-banner-1024x300.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/06\/New-WP_in-text-banner-300x88.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/06\/New-WP_in-text-banner-150x44.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/06\/New-WP_in-text-banner-768x225.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/06\/New-WP_in-text-banner-1536x450.png 1536w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/06\/New-WP_in-text-banner.png 2048w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p><strong>1. Setting up the Staging Site<\/strong><\/p><p>Let&rsquo;s start by creating a staging site on <a href=\"\/support\/1583483-comprehensive-guide-to-hpanel-at-hostinger\/\">Hostinger&rsquo;s hPanel<\/a>:<\/p><ol class=\"wp-block-list\">\n<li>Navigate to <strong>WordPress <\/strong>&rarr; <strong>Staging <\/strong>from your hosting control panel.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-1.png\"><img decoding=\"async\" width=\"419\" height=\"736\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-1.png\" alt=\"hPanel sidebar, highlighting WordPress' staging tool\n\" class=\"wp-image-105894\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-1.png 419w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-1-171x300.png 171w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-1-85x150.png 85w\" sizes=\"(max-width: 419px) 100vw, 419px\" \/><\/a><\/figure><ol start=\"2\" class=\"wp-block-list\">\n<li>In the <strong>Staging <\/strong>tab, select the <strong>Create staging<\/strong> button.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-staging.png\"><img decoding=\"async\" width=\"1024\" height=\"432\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-staging-1024x432.png\" alt=\"WordPress staging section in Hostinger\n\" class=\"wp-image-105895\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-1024x432.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-300x126.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-150x63.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-768x324.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging.png 1428w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"3\" class=\"wp-block-list\">\n<li>Enter the subdomain name for the staging site and click <strong>Create<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-staging-new.png\"><img decoding=\"async\" width=\"886\" height=\"419\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-staging-new.png\" alt=\"A new staging environment creation popup with a field to enter a subdomain\n\" class=\"wp-image-105896\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-new.png 886w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-new-300x142.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-new-150x71.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-new-768x363.png 768w\" sizes=\"(max-width: 886px) 100vw, 886px\" \/><\/a><\/figure><ol start=\"4\" class=\"wp-block-list\">\n<li>The duplication process can take up to 15 minutes, depending on the size of the production website. Hit the <strong>Close <\/strong>button to dismiss the confirmation message.<\/li>\n\n\n\n<li>Once done, scroll down to the staging site list and click <strong>Manage staging<\/strong> next to the newly created environment.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-staging-list.png\"><img decoding=\"async\" width=\"1024\" height=\"213\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-staging-list-1024x213.png\" alt=\"WordPress staging site list, highlighting the button to manage the staging environment\n\" class=\"wp-image-105897\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-list-1024x213.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-list-300x63.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-list-150x31.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-list-768x160.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-list.png 1411w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"6\" class=\"wp-block-list\">\n<li>In the staging dashboard, select <strong>Staging Admin Panel<\/strong> to access the WordPress admin area and start making changes.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-staging-dashboard.png\"><img decoding=\"async\" width=\"1024\" height=\"475\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-staging-dashboard-1024x475.png\" alt=\"WordPress staging dashboard in Hostinger, highlighting the button to access the admin area\n\" class=\"wp-image-105898\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-dashboard.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-dashboard-300x139.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-dashboard-150x70.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-dashboard-768x356.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p><strong>2. Deploying the Changes to the Production Site<\/strong><\/p><p>After making all the necessary changes, follow these steps to deploy them to the live website:<\/p><ol class=\"wp-block-list\">\n<li>On the staging site list, click the three dots icon next to the recently modified staging site and hit <strong>Publish<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-staging-list-publish.png\"><img decoding=\"async\" width=\"1024\" height=\"339\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-staging-list-publish-1024x339.png\" alt=\"WordPress staging site list, highlighting the button to push changes from the staging site to the live one\n\" class=\"wp-image-105899\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-list-publish-1024x339.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-list-publish-300x99.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-list-publish-150x50.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-list-publish-768x254.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-list-publish.png 1421w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"2\" class=\"wp-block-list\">\n<li>Read the disclaimer and hit <strong>Publish <\/strong>to confirm. The process may take around 15 minutes to complete.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-staging-publish.png\"><img decoding=\"async\" width=\"888\" height=\"343\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-staging-publish.png\" alt=\"A disclaimer popup to confirm the publication of content staging\n\" class=\"wp-image-105901\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-publish.png 888w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-publish-300x116.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-publish-150x58.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-publish-768x297.png 768w\" sizes=\"(max-width: 888px) 100vw, 888px\" \/><\/a><\/figure><ol start=\"3\" class=\"wp-block-list\">\n<li>Our WordPress staging tool automatically backs up your entire WordPress website. Click the three dots icon and hit <strong>Revert <\/strong>to roll back to the pre-staging version if needed.<\/li>\n<\/ol><p><div class=\"protip\">\n                    <h4 class=\"title\">Did You Know?<\/h4>\n                    <p> Our <a href=\"\/ph\/wordpress-hosting\">WordPress web hosting plans<\/a> feature an IP manager, WP-CLI and SSH access, and automatic backups, offering enhanced data safety and complete control over your test environment.<\/p>\n                <\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-how-to-create-a-wordpress-staging-environment-using-the-wp-staging-plugin\">How to Create a WordPress Staging Environment Using the WP Staging Plugin<\/h3><p>If your hosting provider doesn&rsquo;t have a staging feature, you can create a WordPress staging website using a plugin. Luckily, many staging plugins are available to ease your work as a site owner.<\/p><p>In the following section, we&rsquo;ll use the free version of <a href=\"https:\/\/wordpress.org\/plugins\/wp-staging\/\" target=\"_blank\" rel=\"noopener\">WP Staging<\/a>, one of the most <a href=\"\/ph\/tutorials\/best-wordpress-plugins\">popular WordPress plugins<\/a> for streamlining staging and backups. However, pushing changes to the live site is a Pro feature. To get it, purchase WP Staging&rsquo;s premium plan starting at <strong>$8.08\/month<\/strong>.<\/p><p>After <a href=\"\/ph\/tutorials\/wordpress\/how-to-install-wordpress-plugins\">installing and activating the WordPress plugin<\/a>, follow these steps to create a staging site:<\/p><ol class=\"wp-block-list\">\n<li>Navigate to the <strong>WP Staging<\/strong> tab from the WordPress dashboard and click the <strong>Create Staging Site<\/strong> button.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/wpstaging-new.png\"><img decoding=\"async\" width=\"1024\" height=\"353\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/wpstaging-new-1024x353.png\" alt=\"WP Staging section, highlighting the button to create a new staging site\n\" class=\"wp-image-105904\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-new.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-new-300x103.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-new-150x52.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-new-768x265.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"2\" class=\"wp-block-list\">\n<li>Enter the site name to create a custom staging site URL. In this example, the staging site URL will be <strong>https:\/\/domain.tld\/staging<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/wpstaging-new-setup.png\"><img decoding=\"async\" width=\"1024\" height=\"460\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/wpstaging-new-setup-1024x460.png\" alt=\"WP Staging site creation, highlighting the field to enter the site name\n\" class=\"wp-image-105905\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-new-setup.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-new-setup-300x135.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-new-setup-150x67.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-new-setup-768x345.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"3\" class=\"wp-block-list\">\n<li>The WordPress staging plugin automatically clones your live site&rsquo;s data into the staging environment. Expand the <strong>Database Tables<\/strong> and <strong>Files <\/strong>sections to select items for duplication, streamlining the staging process. Otherwise, go with the default settings.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/wpstaging-new-setup-customization.png\"><img decoding=\"async\" width=\"599\" height=\"640\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/wpstaging-new-setup-customization.png\" alt=\"Choosing database tables and files to clone using the WP Staging backup plugin\n\" class=\"wp-image-105906\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-new-setup-customization.png 599w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-new-setup-customization-281x300.png 281w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-new-setup-customization-140x150.png 140w\" sizes=\"(max-width: 599px) 100vw, 599px\" \/><\/a><\/figure><ol start=\"4\" class=\"wp-block-list\">\n<li>Select <strong>Start Cloning<\/strong> and wait for a few minutes for the process to complete.<\/li>\n\n\n\n<li>If the cloning process is successful, you&rsquo;ll receive a confirmation message with the staging site URL. Click <strong>Close <\/strong>to dismiss it.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/wpstaging-new-setup-confirmation-1.png\"><img decoding=\"async\" width=\"926\" height=\"490\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/wpstaging-new-setup-confirmation-1.png\" alt=\"A confirmation message that appears when the staging site creation is complete\n\" class=\"wp-image-105907\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-new-setup-confirmation-1.png 926w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-new-setup-confirmation-1-300x159.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-new-setup-confirmation-1-150x79.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-new-setup-confirmation-1-768x406.png 768w\" sizes=\"(max-width: 926px) 100vw, 926px\" \/><\/a><\/figure><ol start=\"6\" class=\"wp-block-list\">\n<li>Return to <strong>WP Staging<\/strong> &rarr; <strong>Staging Sites <\/strong>and select <strong>Actions <\/strong>&rarr; <strong>Open <\/strong>to access the newly created staging site with your admin credentials.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/wpstaging-access.png\"><img decoding=\"async\" width=\"1024\" height=\"495\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/wpstaging-access-1024x495.png\" alt=\"WP Staging site list, highlighting the option to access a test site\n\" class=\"wp-image-105902\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-access.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-access-300x145.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-access-150x73.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-access-768x371.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\" id=\"h-how-to-create-a-wordpress-staging-environment-manually-using-a-subdomain\">How to Create a WordPress Staging Environment Manually Using a Subdomain<\/h3><p>The manual method demands more technical expertise and time than using a staging tool. However, it provides full control over staging, enabling testing of custom codes or complex site setups within a tailored environment that mirrors the live site.<\/p><p>This guide will cover how to create a WordPress staging site manually using Hostinger&rsquo;s File Manager.<\/p><p><strong>1. Creating the Subdomain<\/strong><\/p><p><a href=\"\/ph\/tutorials\/install-wordpress-on-subdomain\">Setting up a WordPress staging site in a subdomain<\/a> ensures safer changes as it&rsquo;s separate from the production website. Here&rsquo;s how to do it:<\/p><ol class=\"wp-block-list\">\n<li>Go to <strong>Domains <\/strong>&rarr; <strong>Subdomains <\/strong>from the hPanel dashboard.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-subdomains.png\"><img decoding=\"async\" width=\"418\" height=\"611\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-subdomains.png\" alt=\"Subdomains section in Hostinger hPanel\n\" class=\"wp-image-105908\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains.png 418w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains-205x300.png 205w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains-103x150.png 103w\" sizes=\"(max-width: 418px) 100vw, 418px\" \/><\/a><\/figure><ol start=\"2\" class=\"wp-block-list\">\n<li>Enter the subdomain name. This step creates a new folder in the <strong>public_html<\/strong> directory. Alternatively, check the <strong>Custom folder for subdomain<\/strong> option to create a new subdomain folder with a custom name. Click <strong>Create<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-subdomains-new.png\"><img decoding=\"async\" width=\"1024\" height=\"371\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-subdomains-new-1024x371.png\" alt=\"Hostinger's subdomains section, where user can create a new subdomain\n\" class=\"wp-image-105909\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains-new-1024x371.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains-new-300x109.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains-new-150x54.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains-new-768x278.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains-new.png 1424w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"3\" class=\"wp-block-list\">\n<li>The new subdomain will appear in the <strong>List of Current Subdomains<\/strong> section.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-subdomains-list.png\"><img decoding=\"async\" width=\"1024\" height=\"276\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-subdomains-list-1024x276.png\" alt=\"List of current subdomains in Hostinger\n\" class=\"wp-image-105910\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains-list-1024x276.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains-list-300x81.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains-list-150x40.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains-list-768x207.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains-list.png 1411w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p><strong>2. Copying the Website Files<\/strong><\/p><p>The next step is to populate the new subdomain with your WordPress site&rsquo;s files. You can copy the live site files using your hosting provider&rsquo;s file manager or an <a href=\"\/ph\/tutorials\/ftp\/filezilla-ftp-configuration\">FTP client like FileZilla<\/a>.<\/p><p>Follow these steps to duplicate the live site files using Hostinger&rsquo;s File Manager:<\/p><ol class=\"wp-block-list\">\n<li>Head to <strong>Files <\/strong>&rarr; <strong>File Manager<\/strong> from hPanel, and choose <strong>Access files of [your live site]<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-file-manager.png\"><img decoding=\"async\" width=\"1024\" height=\"176\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-file-manager-1024x176.png\" alt=\"Hostinger's File Manager, highlighting the option to access files of the live site\n\" class=\"wp-image-105911\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-1024x176.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-300x52.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-150x26.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-768x132.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager.png 1425w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"2\" class=\"wp-block-list\">\n<li>Double-click <strong>public_html<\/strong>,<strong> <\/strong>the root directory, to access it.<\/li>\n\n\n\n<li>Copy all folders and files to the subdomain folder. The simplest method is to press <strong>Ctrl + A<\/strong> in Windows or <strong>Command + A <\/strong>in Mac, deselect the subdomain folder, and click the <strong>Copy file <\/strong>icon on the top toolbar.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-file-manager-copy.png\"><img decoding=\"async\" width=\"1024\" height=\"477\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-file-manager-copy-1024x477.png\" alt=\"The dashboard of Hostinger's File Manager, highlighting the Copy file button\n\" class=\"wp-image-105912\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-copy.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-copy-300x140.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-copy-150x70.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-copy-768x358.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p><strong>3. Cloning the Database<\/strong><\/p><p>After duplicating your WordPress files, do the same to the existing database.<\/p><p>Here&rsquo;s how to clone your <a href=\"\/ph\/tutorials\/wordpress-database\">WordPress database<\/a> using <strong>phpMyAdmin<\/strong>, a popular administration tool for MySQL databases:<\/p><ol class=\"wp-block-list\">\n<li>Navigate to <strong>WordPress <\/strong>&rarr; <strong>Overview <\/strong>from hPanel. Open the <strong>Dashboard<\/strong> tab and check which database your main website is using.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-database-name.png\"><img decoding=\"async\" width=\"1024\" height=\"472\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-database-name-1024x472.png\" alt=\"WordPress dashboard in hPanel, highlighting the site's database name\n\" class=\"wp-image-105913\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-name-1024x472.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-name-300x138.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-name-150x69.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-name-768x354.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-name.png 1423w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"2\" class=\"wp-block-list\">\n<li>Head to <strong>Databases <\/strong>&rarr; <strong>Management<\/strong> from hPanel<strong> <\/strong>and create a new database for the staging site. If the process is successful, the new database will appear in the <strong>List of Current MySQL Databases And Users<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-database-new.png\"><img decoding=\"async\" width=\"1024\" height=\"376\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-database-new-1024x376.png\" alt=\"The database management section in hPanel, where user can create a new database\n\" class=\"wp-image-105915\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-new-1024x376.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-new-300x110.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-new-150x55.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-new-768x282.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-new.png 1418w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"3\" class=\"wp-block-list\">\n<li>Access <strong>Databases <\/strong>&rarr; <strong>phpMyAdmin <\/strong>and click <strong>Enter phpMyAdmin<\/strong> next to your live site&rsquo;s database.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-database-list.png\"><img decoding=\"async\" width=\"1024\" height=\"462\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-database-list-1024x462.png\" alt=\"List of current databases in hPanel, highlighting the option to access one via phpMyAdmin\n\" class=\"wp-image-105916\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-list-1024x462.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-list-300x135.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-list-150x68.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-list-768x346.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-list.png 1430w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"4\" class=\"wp-block-list\">\n<li>Once hPanel redirects you to phpMyAdmin, open the <strong>Export <\/strong>tab and hit <strong>Go<\/strong>. Using default settings lets you download the database in <strong>SQL <\/strong>format to your computer.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/phpmyadmin-export.png\"><img decoding=\"async\" width=\"1024\" height=\"336\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/phpmyadmin-export-1024x336.png\" alt=\"phpMyAdmin export tab\n\" class=\"wp-image-105917\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-export-1536x505.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-export-300x99.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-export-150x49.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-export-768x252.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-export.png 1616w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"5\" class=\"wp-block-list\">\n<li>Return to the <strong>phpMyAdmin <\/strong>section in hPanel. This time, select <strong>Enter phpMyAdmin<\/strong> next to your staging database.<\/li>\n\n\n\n<li>Inside phpMyAdmin, open the <strong>Import <\/strong>tab and select the downloaded SQL file. Keep the default settings and hit <strong>Go<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large is-resized\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/phpmyadmin-import.png\"><img decoding=\"async\" width=\"1024\" height=\"312\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/phpmyadmin-import-1024x312.png\" alt=\"phpMyAdmin import tab, highlighting the button to upload the downloaded database file\n\" class=\"wp-image-105919\" style=\"width:840px;height:auto\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-import-1024x312.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-import-300x91.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-import-150x46.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-import-768x234.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-import.png 1317w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"7\" class=\"wp-block-list\">\n<li>If the import process is successful, a confirmation message will appear along with the database tables on the sidebar.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/phpmyadmin-import-confirmation.png\"><img decoding=\"async\" width=\"1024\" height=\"735\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/phpmyadmin-import-confirmation-1024x735.png\" alt=\"A confirmation message after a successful database import\n\" class=\"wp-image-105920\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-import-confirmation-1024x735.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-import-confirmation-300x215.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-import-confirmation-150x108.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-import-confirmation-768x551.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-import-confirmation.png 1166w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p><strong>4. Configuring the Subdomain&rsquo;s wp-config.php File<\/strong><\/p><p>Now that you have a separate database for testing, connect it to your new staging site in the subdomain. You can do so by modifying the <a href=\"\/ph\/tutorials\/wp-config-php\">wp-config.php<\/a> file, a core element of your WordPress installation that stores database information.<\/p><p>Follow these steps to establish a new database connection in the <strong>wp-config.php<\/strong> file:<\/p><ol class=\"wp-block-list\">\n<li>On File Manager, open <strong>public_html<\/strong> &rarr; <strong>staging <\/strong>&rarr; <strong>wp-config.php<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-file-manager-staging-config.png\"><img decoding=\"async\" width=\"1024\" height=\"487\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-file-manager-staging-config-1024x487.png\" alt=\"Hostinger File Manager, highlighting the wp-config.php file in the staging folder\n\" class=\"wp-image-105921\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-staging-config.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-staging-config-300x143.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-staging-config-150x71.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-staging-config-768x365.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"2\" class=\"wp-block-list\">\n<li>Scroll down until you find a line of code that says <strong>Database settings &ndash; You can get this info from your web host<\/strong>. Add the following code above it:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">define('WP_HOME','http:\/\/staging.domain.tld');\ndefine('WP_SITEURL','http:\/\/staging.domain.tld');<\/pre><p>Remember to change the <strong>staging.domain.tld<\/strong> placeholder to your staging subdomain.<\/p><figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-file-manager-staging-config-url.png\"><img decoding=\"async\" width=\"985\" height=\"474\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-file-manager-staging-config-url.png\" alt=\"The content of wp-config.php file, highlighting the syntax to define the staging site URL\n\" class=\"wp-image-105922\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-staging-config-url.png 985w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-staging-config-url-300x144.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-staging-config-url-150x72.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-staging-config-url-768x370.png 768w\" sizes=\"(max-width: 985px) 100vw, 985px\" \/><\/a><\/figure><ol start=\"3\" class=\"wp-block-list\">\n<li>Change <strong>DB_NAME<\/strong>, <strong>DB_USER<\/strong>, and <strong>DB_PASSWORD<\/strong> values to match your staging site&rsquo;s database information and credentials. Once you&rsquo;re done, click the <strong>Save <\/strong>icon.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-file-manager-staging-config-database.png\"><img decoding=\"async\" width=\"997\" height=\"270\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-file-manager-staging-config-database.png\" alt=\"WordPress database details in wp-config.php\n\" class=\"wp-image-105924\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-staging-config-database.png 997w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-staging-config-database-300x81.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-staging-config-database-150x41.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-staging-config-database-768x208.png 768w\" sizes=\"(max-width: 997px) 100vw, 997px\" \/><\/a><\/figure><p>You can now use the staging environment.<\/p><p><strong>5. Deploying the Changes to the Production Site<\/strong><\/p><p>This step involves importing the staging site&rsquo;s database and files to the production environment.<\/p><p>Since you can only import into an empty database, clear the live site&rsquo;s database first. After backing up the original site&rsquo;s database using phpMyAdmin&rsquo;s export feature, follow these steps:<\/p><ol class=\"wp-block-list\">\n<li><strong>Export <\/strong>your staging site&rsquo;s database via <strong>Databases <\/strong>&rarr; <strong>phpMyAdmin<\/strong>.<\/li>\n\n\n\n<li>Open your live site&rsquo;s database in phpMyAdmin.<\/li>\n\n\n\n<li>In the <strong>Structure <\/strong>tab, tick the <strong>Check all<\/strong> box under the list of tables and choose <strong>Drop <\/strong>from the dropdown field next to it. Select <strong>Go <\/strong>to remove all tables from the database.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/phpmyadmin-table-drop.png\"><img decoding=\"async\" width=\"648\" height=\"494\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/phpmyadmin-table-drop.png\" alt=\"phpMyAdmin interface, highlighting the command to remove database tables\n\" class=\"wp-image-105925\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-table-drop.png 648w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-table-drop-300x229.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/phpmyadmin-table-drop-150x114.png 150w\" sizes=\"(max-width: 648px) 100vw, 648px\" \/><\/a><\/figure><ol start=\"4\" class=\"wp-block-list\">\n<li><strong>Import <\/strong>the staging site&rsquo;s database file to the live site.<\/li>\n<\/ol><p>For your website files, copy everything except <strong>wp-config.php<\/strong> from the <strong>staging <\/strong>folder to the <strong>public_html<\/strong> folder using File Manager.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-delete-a-staging-site\">How to Delete a Staging Site<\/h2><p>Many WordPress users like the convenience of having staging sites ready at all times. However, deleting a staging site post-update can conserve server resources and streamline website management, focusing your efforts on the production environment.<\/p><p>Here&rsquo;s a guide to removing a staging site, depending on how you created it:<\/p><p><strong>Deleting a Staging Site in Hostinger&rsquo;s Staging Tool<\/strong><\/p><ol class=\"wp-block-list\">\n<li>Head to the staging site list in hPanel and locate the website you want to remove.<\/li>\n\n\n\n<li>Select the three dots icon and hit <strong>Delete<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-staging-delete.png\"><img decoding=\"async\" width=\"1024\" height=\"343\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-staging-delete-1024x343.png\" alt=\"WordPress staging site list, highlighting the button to delete a staging site\n\" class=\"wp-image-105926\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-delete-1024x343.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-delete-300x101.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-delete-150x50.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-delete-768x257.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-staging-delete.png 1411w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"3\" class=\"wp-block-list\">\n<li>Read the disclaimer and select <strong>Delete <\/strong>to confirm.<\/li>\n<\/ol><p><strong>Deleting a Staging Site in the WP Staging Plugin<\/strong><\/p><ol class=\"wp-block-list\">\n<li>Head to <strong>WP Staging<\/strong> &rarr; <strong>Staging Sites<\/strong> from the WordPress admin dashboard and locate the website you no longer use for testing.<\/li>\n\n\n\n<li>Click <strong>Actions <\/strong>&rarr; <strong>Delete <\/strong>next to the chosen staging site.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/wpstaging-delete.png\"><img decoding=\"async\" width=\"1024\" height=\"316\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/wpstaging-delete-1024x316.png\" alt=\"WP Staging site list, highlighting the option to delete staging site\n\" class=\"wp-image-105927\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-delete-1024x316.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-delete-300x93.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-delete-150x46.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-delete-768x237.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-delete.png 1208w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"3\" class=\"wp-block-list\">\n<li>Select all the staging database tables and files you want to remove, then click <strong>Delete<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/wpstaging-delete-confirmation.png\"><img decoding=\"async\" width=\"1024\" height=\"582\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/wpstaging-delete-confirmation-1024x582.png\" alt=\"Staging site deletion confirmation popup with lists of database and folder items\n\" class=\"wp-image-105928\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-delete-confirmation-1024x582.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-delete-confirmation-300x171.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-delete-confirmation-150x85.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-delete-confirmation-768x437.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/wpstaging-delete-confirmation.png 1465w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p><strong>Deleting a Manual Staging Site in the Subdomain<\/strong><\/p><ol class=\"wp-block-list\">\n<li><strong>Delete <\/strong>the <strong>staging <\/strong>folder from the <strong>public_html<\/strong> directory via File Manager.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-file-manager-delete.png\"><img decoding=\"async\" width=\"1024\" height=\"440\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-file-manager-delete-1024x440.png\" alt=\"Hostinger File Manager, highlighting the option to delete a folder\n\" class=\"wp-image-105929\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-delete-1536x660.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-delete-300x129.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-delete-150x64.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-delete-768x330.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-file-manager-delete.png 1545w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"2\" class=\"wp-block-list\">\n<li>Head to the <strong>List of Current MySQL Databases And Users<\/strong> in hPanel through <strong>Databases <\/strong>&rarr; <strong>Management<\/strong>. Click the three dots icon next to your staging database and choose <strong>Delete<\/strong>. Read the disclaimer and hit <strong>Confirm Delete<\/strong>.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-database-delete.png\"><img decoding=\"async\" width=\"1024\" height=\"419\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-database-delete-1024x419.png\" alt=\"The list of current MySQL databases and users, highlighting the option to delete a database\n\" class=\"wp-image-105930\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-delete-1024x419.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-delete-300x123.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-delete-150x61.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-delete-768x314.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-database-delete.png 1412w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><ol start=\"3\" class=\"wp-block-list\">\n<li>Access the <strong>List of Current Subdomains<\/strong> via <strong>Domains <\/strong>&rarr; <strong>Subdomains<\/strong>. Select the <strong>Delete <\/strong>icon next to the staging subdomain you no longer use. Read the disclaimer and hit <strong>Delete <\/strong>to confirm.<\/li>\n<\/ol><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-subdomains-list-1.png\"><img decoding=\"async\" width=\"1024\" height=\"276\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-subdomains-list-1-1024x276.png\" alt=\"The list of current subdomains in hPanel with a delete button to remove each\n\" class=\"wp-image-105931\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains-list-1-1024x276.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains-list-1-300x81.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains-list-1-150x40.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains-list-1-768x207.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-subdomains-list-1.png 1411w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-helpful-tips-for-working-with-a-wordpress-staging-site\">Helpful Tips for Working With a WordPress Staging Site<\/h2><p>Here are some of the best practices to ensure a smooth and secure web development process:<\/p><ul class=\"wp-block-list\">\n<li><strong>Restrict access to your staging site.<\/strong> <a href=\"\/ph\/tutorials\/htaccess\/how-to-restrict-access-to-your-website-for-everyone-except-you\">Allowlist your IP address<\/a> and those of relevant team members to protect the staging environment from external threats. Alternatively, block all access except yours by adding the <strong>deny from all<\/strong> command in your <strong>.htaccess<\/strong> file.<\/li>\n\n\n\n<li><strong>Use different databases for production and staging sites.<\/strong> This practice prevents staging tests and changes from impacting your production site, avoiding accidental data overwrites or conflicts between the two environments.<\/li>\n\n\n\n<li><a href=\"\/ph\/tutorials\/wordpress\/how-to-clear-wordpress-cache\">Clear cache<\/a><strong> before deploying changes.<\/strong> As caching can sometimes present an outdated version of your site, flushing them out forces the site to reload to show recent changes.<\/li>\n\n\n\n<li><strong>Sync staging and live WordPress sites regularly.<\/strong> Conducting tests and developments on your live site&rsquo;s current version ensures accurate results.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-wordpress-staging-vs-local-development-environments\">WordPress Staging vs Local Development Environments<\/h2><p>Staging sites and local development environments serve different roles in website development and maintenance, so it&rsquo;s crucial to choose the right one for your needs.<\/p><p>In this article, we focus on staging environments, which replicate your live site for safe update testing in an environment that closely mirrors the live setting. They&rsquo;re perfect for conducting final checks before implementing changes, ensuring that everything works without any errors or downtime.<\/p><p>In contrast, local WordPress environments run offline on your computer. They&rsquo;re best for early development phases, extensive coding work, and testing significant changes without incurring server costs or needing internet access.<\/p><p>If you aim to <a href=\"\/ph\/tutorials\/how-to-become-wordpress-developer\">become a WordPress developer<\/a>, a local staging environment can serve as your sandbox for hands-on learning. It lets you build and test sites under various conditions anytime, anywhere, without internet connectivity &#8210; providing a cost-effective way to sharpen your skills.<\/p><p>See our tutorial on <a href=\"\/ph\/tutorials\/install-wordpress-locally\">installing WordPress locally<\/a> for detailed methods and steps.<\/p><h2 class=\"wp-block-heading\" id=\"h-reasons-to-use-a-wordpress-staging-site\">Reasons to Use a WordPress Staging Site<\/h2><p>You know that a WordPress staging site enables development and testing without impacting the live website. If you need more convincing, let&rsquo;s dive deeper into the benefits of staging.<\/p><p><strong>WordPress Core Updates<\/strong><\/p><p>Implementing WordPress core updates is crucial for security, performance, and accessing new features. However, these updates can sometimes lead to site crashes, especially if there are compatibility issues with outdated plugins or themes.<\/p><p>Using a staging website lets you identify and resolve any conflicts or issues before affecting your live site. It helps prevent downtime and ensure site reliability during major updates.<\/p><p>If you want to double-check your WordPress version, head to <strong>WordPress <\/strong>&rarr; <strong>Security <\/strong>from hPanel. Note that the location of this information varies depending on your web host.<\/p><figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-version.png\"><img decoding=\"async\" width=\"1024\" height=\"258\" src=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2024\/03\/hpanel-wordpress-version-1024x258.png\" alt=\"WordPress security section in hPanel, showing the current version of the CMS\n\" class=\"wp-image-105933\" srcset=\"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-version-1024x258.png 1024w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-version-300x76.png 300w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-version-150x38.png 150w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-version-768x193.png 768w, https:\/\/www.hostinger.com\/ph\/tutorials\/wp-content\/uploads\/sites\/44\/2024\/03\/hpanel-wordpress-version.png 1255w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><p><strong>WordPress Design and Functionality Customization<\/strong><\/p><p>Integrating custom code into core files, themes, or plugins is crucial for scaling a WordPress site. However, making these changes directly on a live site carries the risk of errors or functionality issues.<\/p><p>A staging website provides a safe environment to test and refine these customizations without affecting the live site. This way, you maintain your site&rsquo;s stability while freely experimenting with new features.<\/p><p><strong>Plugin and Theme Testing<\/strong><\/p><p>Testing plugins and themes in a staging website lets you safely assess their impact on your live site without risking its stability. This process helps identify compatibility issues, performance drops, or visual inconsistencies before they go live.<\/p><p>Additionally, developers can use staging to thoroughly test and refine their new plugins or themes, fixing bugs before the public release.<\/p><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>Creating a staging WordPress site enables you to test new features and designs safely. This feature promotes innovation and practical learning, as well as improves your security by preventing errors and downtime on the live site.<\/p><p>Let&rsquo;s recap three effective methods for setting up your own WordPress staging site:<\/p><ul class=\"wp-block-list\">\n<li><strong>Using Hostinger&rsquo;s staging tool<\/strong> &#8210; the easiest and fastest of the three, as it only takes a few clicks to complete without installing additional features.<\/li>\n\n\n\n<li><strong>Using a WordPress plugin<\/strong> &#8210; ideal for users without a staging tool on their hosting control panel. Several staging plugins offer a free version with varying features.<\/li>\n\n\n\n<li><strong>Manually in a subdomain<\/strong> &#8210; takes more time to set up but provides more flexibility and control over the staging environment.<\/li>\n<\/ul><p>We hope this article helped you learn how to set up a WordPress staging site for testing purposes. If you have any questions, check out the FAQ section or leave a comment below. Good luck!<\/p><h2 class=\"wp-block-heading\" id=\"h-wordpress-staging-faq\">WordPress Staging FAQ<\/h2><p>This section answers some of the most common questions about WordPress staging sites.<\/p><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1710994885562\"><h3 class=\"schema-faq-question\">What Is the Difference Between Staging and Production in WordPress?<\/h3> <p class=\"schema-faq-answer\">In WordPress, the staging environment is a test area mirroring the production site for safe experimentation and testing. Meanwhile, the production environment is where the live website operates, implementing changes for all visitors to see.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1710994902132\"><h3 class=\"schema-faq-question\">Is the WordPress Staging Tool Necessary?<\/h3> <p class=\"schema-faq-answer\">A WordPress staging tool benefits users of all levels by providing a secure platform to test changes without impacting the live site. It ensures all changes stay private until you decide to push them to the live or production environment, significantly reducing the risk of errors or downtime.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1710994916503\"><h3 class=\"schema-faq-question\">How Do I Synchronize Staging and Production in WordPress?<\/h3> <p class=\"schema-faq-answer\">Most staging tools by hosting providers or plugins feature a one-click synchronization option, making it easy to push changes from staging to production. If your chosen tool lacks this feature, manually transfer files and database tables to the live site.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>WordPress websites have a significant advantage &ndash; the possibility of creating a staging site for testing changes and updates before going live. As a duplicate of your live site, a staging environment lets you experiment with different designs, plugins, and content without affecting the user experience. In this WordPress guide, we&rsquo;ll cover three methods to [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ph\/tutorials\/wordpress-staging-environment\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":187,"featured_media":126719,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Set Up a WordPress Staging Environment: 3 Simple Ways","rank_math_description":"A WordPress staging environment duplicates a live website. Learn how to use Hostinger's staging environment tool to create a staging site in a few clicks.","rank_math_focus_keyword":"WordPress staging","footnotes":""},"categories":[22632],"tags":[],"class_list":["post-18086","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/wordpress-staging-environment","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/ambiente-de-teste-wordpress","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/wordpress-staging","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/entorno-staging-wordpress","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/wordpress-staging-environment","default":0},{"locale":"it-IT","link":"https:\/\/www.hostinger.com\/it\/tutorial\/staging-wordpress","default":0},{"locale":"nl-NL","link":"https:\/\/www.hostinger.com\/nl\/tutorials\/wordpress-staging-omgeving","default":0},{"locale":"ja-JP","link":"https:\/\/www.hostinger.com\/jp\/tutorials\/wordpress-staging-environment","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/wordpress-staging-environment","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/wordpress-staging-environment","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/wordpress-staging-environment","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/entorno-staging-wordpress","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/como-usar-sftp-14","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/entorno-staging-wordpress","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/ambiente-de-teste-wordpress","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/wordpress-staging-environment","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/wordpress-staging-environment","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/wordpress-staging-environment","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/wordpress-staging-environment","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/posts\/18086","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/users\/187"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/comments?post=18086"}],"version-history":[{"count":72,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/posts\/18086\/revisions"}],"predecessor-version":[{"id":126717,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/posts\/18086\/revisions\/126717"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/media\/126719"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/media?parent=18086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/categories?post=18086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ph\/tutorials\/wp-json\/wp\/v2\/tags?post=18086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}