{"id":1896655,"date":"2019-10-18T13:19:46","date_gmt":"2019-10-18T17:19:46","guid":{"rendered":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/creating-and-using-a-wordpress-staging-site\/"},"modified":"2023-06-29T10:44:13","modified_gmt":"2023-06-29T14:44:13","slug":"creating-and-using-a-wordpress-staging-site","status":"publish","type":"post","link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/creating-and-using-a-wordpress-staging-site\/","title":{"rendered":"Testing Updates in a Staging Environment"},"content":{"rendered":"\n<p>Have you logged in to your&nbsp;site and been tempted to click on all the places where WordPress is telling you updates are available?<\/p>\n\n\n\n<p>Perhaps it was a new version of WordPress available to install. Or a long-awaited update to a particular plugin. Maybe it&#8217;s a general&nbsp;theme update. Whatever the case, all of us have clicked those shiny options at some point, initiated the update, and&#8230; uh oh.<\/p>\n\n\n\n<p><em>Something&#8217;s wrong.<\/em><\/p>\n\n\n\n<p>Updating WordPress, plugins, and themes can cause&nbsp;fatal errors,&nbsp;gnarly-looking notices on&nbsp;your site&#8217;s front end,&nbsp;service disruptions, or even the dreaded <a href=\"https:\/\/kinsta.com\/blog\/wordpress-white-screen-of-death\/\" target=\"_blank\" rel=\"noreferrer noopener\">white screen of death<\/a>. Any of these are scary and terrible on their own, but it&#8217;s even worse knowing that&#8217;s it&#8217;s happening right now on your&nbsp;<em>live website<\/em>&nbsp;for the world to see.<\/p>\n\n\n\n<p>This is probably the single most common thing our team sees in our support inbox.&nbsp;If you&#8217;ve ever encountered a similar scenario of your own, you know how stressful it can be to navigate troubleshooting processes while a compromised site is being displayed to your users.<\/p>\n\n\n\n<p>The good news is that this is all totally preventable and&nbsp;with just a bit of forethought and preparation. The secret lies in a useful tool called a <strong>staging site<\/strong>, and it&#8217;s one that we strongly recommend for any and all WordPress users. In this article, we&#8217;ll go over the what&#8217;s, why&#8217;s, and how&#8217;s of staging sites so you&#8217;ll be armed with all the information you need to set up and use your own.&nbsp;Let&#8217;s get started!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"staging\">What&#8217;s a staging site?<\/h2>\n\n\n\n<p>A staging site, simply put, is an exact duplicate of your live site&#8217;s server, settings, and content, used for testing changes before they&#8217;re applied to your live site. You might think of staging for WordPress as being similar to a dress rehearsal: when coordinating a stage production, there are many rehearsals completed in private before presenting the finished play to an audience. These rehearsals ensure that all players are able to perform their roles under simulated conditions and that any changes, such as the substitution of a cast member, can be prepared for prior to opening night. If any complications should arise along the way, they can be dealt with using whatever means are appropriate\u2014<em>without<\/em> compromising the quality of your performance in front of an audience.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"why\">Why&nbsp;use a staging site at all?<\/h2>\n\n\n\n<p>If you&#8217;ve never used a staged version of&nbsp;your WordPress site before, you may be wondering whether it&#8217;s necessary to set one up. The truth is that staging sites provide a wealth of benefits for administrating all kinds of WordPress sites, and there are options available for users of all technical skill levels. What are some of the perks you&#8217;ll get with a WordPress staging site? Here are a few to consider:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"downtime\">Zero (non-server-related) downtime<\/h3>\n\n\n\n<p>While staging sites are unable to prevent causes of server-related downtime, such as scheduled maintenance periods, the use of a staging site can effectively prevent downtime from any WordPress-related causes. By deploying any changes or updates to your staging site <em>first<\/em>, you can detect any potential problems in a safe environment and hold off on pushing changes to your live site until it&#8217;s safe to do so.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"support\">Better, faster technical support<\/h3>\n\n\n\n<p>Many WordPress developers (ourselves included) rely on a process known as <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/testing-for-conflicts\/\" target=\"_blank\" rel=\"noreferrer noopener\">conflict testing<\/a> to help root out potential conflicts between themes and\/or plugins. This process typically involves disabling all third-party plugins and reverting to a stock WordPress theme, then reactivating each theme and plugin one at a time until the problem reappears.<\/p>\n\n\n\n<p>The information our support team obtains from this process is crucial to resolving issues in a timely manner and knowing the source of a particular conflict can be helpful in preventing future conflicts of the same type. However, disabling themes and\/or plugins on a live site can be a deterrent to potential visitors, and we often see users who are unwilling to perform this type of testing. Without the benefit of conflict testing data, our support team is severely limited in its ability to assist, and there are many inquiries that simply cannot be resolved.<\/p>\n\n\n\n<p>A staging site resolves this issue handily because there are no visitors who would&nbsp;be impacted by conflict testing in a staging environment.&nbsp;As a result, any necessary troubleshooting steps can be completed quickly and under ideal conditions. Plus, there&#8217;s less impact to your business or organization, since any issues that may require technical support will appear first on your staging site, far from any visitors&#8217; eyes.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-using-your-license-on-your-staging-site\">Using your license on your staging site<\/h3>\n\n\n\n<p>And don&#8217;t worry, you can use your license on both your staging site and live site at the same time. We&#8217;ve whitelisted many domains so that your license will be recognized on both sites simultaneously. Read more about using your license on your live and staging sites <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/using-one-license-for-live-and-dev-sites\/\" target=\"_blank\" rel=\"noreferrer noopener\">here<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"step-above\">It&#8217;s a&nbsp;step above backups<\/h3>\n\n\n\n<p>Many WordPress site owners choose to <a href=\"https:\/\/theeventscalendar.com\/options-to-create-a-wordpress-backup-database\/\">rely on backups<\/a> for added peace of mind when updating WordPress, adding plugins, or changing site settings. The benefits of maintaining off-site backups are numerous, and many popular plugins exist to further simplify and streamline the backup process. However, depending <em>solely<\/em> on backups may expose your site to added risk from routine updates, especially if your site isn&#8217;t configured to perform these backup tasks automatically.<\/p>\n\n\n\n<p>If a WordPress or plugin update introduces an unexpected issue, a proper backup may help to restore your site&#8217;s functionality, but any content updates published after the last backup may be permanently lost. Furthermore, backups cannot prevent downtime or site malfunctions that may result from such issues, resulting in potential lost business and poor experiences for your visitors. In the most severe of cases, your WordPress site&#8217;s dashboard may be rendered completely inaccessible. A complicated backup restoration process from your site&#8217;s database may be the only solution in such cases.<\/p>\n\n\n\n<p>Backups certainly serve their purpose in the WordPress world, as they do elsewhere, and it&#8217;s worth maintaining regular backups of your site and its contents. For the most frequent site updates you&#8217;re likely to perform on a regular basis, however, a staging site will provide you with the same sense of security, and you&#8217;ll sidestep many of the potential pitfalls.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"set-up\">How is a staging site set up?<\/h2>\n\n\n\n<p>As with most things in the WordPress world, users have a number of choices when it comes to establishing staging sites, ranging from one-click solutions to highly-customized hands-on setups. We&#8217;ve listed a few possibilities below&nbsp;that provide a solid balance between features and ease of use. For technical users, a quick web search should provide plenty of resources for further reading and exploration. That said, we think you&#8217;ll find that the below options should cover most needs adequately and with minimal fuss&#8211;which means more time for managing your site and events!<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"host\">Option 1:&nbsp;Use your web host&#8217;s tools<\/h3>\n\n\n\n<p>Many WordPress-focused web hosts provide options for setting up staging sites with a single click, with little or no extra configuration required. Simply create your WordPress site, populate your initial content, and click to deploy to a staging environment. Any future updates can then be performed on your staging site and tested before pushing live. Each web host&#8217;s offering will perform somewhat differently, so you&#8217;ll want to review your host&#8217;s documentation before diving in. That said, if your host provides this functionality to its users, this is definitely one of the simplest options for day-to-day use!<\/p>\n\n\n\n<p>A few web hosts that provide one-click staging functionality are listed below. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.nexcess.net\/help\/nexcess-managing-dev-staging-environments\/\" target=\"_blank\" rel=\"noreferrer noopener\">Nexcess<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/getflywheel.com\/wordpress-support\/staging-on-flywheel\/\" target=\"_blank\" rel=\"noreferrer noopener\">Flywheel<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/kinsta.com\/knowledgebase\/staging-environment\/\" target=\"_blank\" rel=\"noopener noreferrer\">Kinsta<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/pressable.com\/features\/wordpress-staging-environments\/\" target=\"_blank\" rel=\"noreferrer noopener\">Pressable<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/www.siteground.com\/tutorials\/staging\/\" target=\"_blank\" rel=\"noreferrer noopener\">SiteGrou<\/a><a href=\"https:\/\/www.siteground.com\/tutorials\/staging\/?gclid=EAIaIQobChMIpZeRr__o_wIVU-_ICh31twAuEAAYASAAEgLbpfD_BwE\" target=\"_blank\" rel=\"noreferrer noopener\">nd<\/a><\/li>\n\n\n\n<li><a href=\"https:\/\/wpengine.com\/resources\/what-is-a-staging-site-why-have-one\/\" target=\"_blank\" rel=\"noreferrer noopener\">WP Engine<\/a><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"3rd-party\">Option 2:&nbsp;Use a third-party hosted solution<\/h3>\n\n\n\n<p>If you prefer the simplicity of a one-click setup but don&#8217;t have access to this feature through your current host, you&#8217;re still in luck. Third-party hosted solutions such as <a href=\"https:\/\/blogvault.net\/features\/one-click-wordpress-staging\/\" target=\"_blank\" rel=\"noopener noreferrer\">BlogVault<\/a> and <a href=\"https:\/\/wpstagecoach.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">WP Stagecoach<\/a> provide many of the same features as web host staging sites, and many provide extra perks such as dedicated support services. These platforms typically employ the use of a plugin installed on your WordPress site, which serves as an intermediary for transferring data between both servers.<\/p>\n\n\n\n<p>Since these platforms are not included as part of an existing hosting plan, they typically come with a monthly fee, which may cover one or multiple staging sites. If you&#8217;re considering a hosted service for your staging environment, be sure to review your options fully to ensure that you&#8217;re covered for the features and functionality that you need.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"plugin\">Option 3:&nbsp;Use a WordPress staging plugin<\/h3>\n\n\n\n<p>If neither of the above-listed options is an ideal fit for your setup, you might consider using a plugin-based method for setting up your staging environment. One such plugin, <a href=\"https:\/\/wordpress.org\/plugins\/wp-staging\/\" target=\"_blank\" rel=\"noopener noreferrer\">WP Staging<\/a>, automates the process of establishing a staging site from your existing WordPress install. Simply install, activate, and follow the provided steps to duplicate your live site to a staging environment. This plugin is free and is available for download on WordPress.org&#8217;s plugin repository.<\/p>\n\n\n\n<p>For more information on WP Staging, please refer to <a href=\"https:\/\/wordpress.org\/plugins\/wp-staging\/\" target=\"_blank\" rel=\"noopener noreferrer\">the plugin&#8217;s WordPress.org directory listing<\/a> or check out the developer&#8217;s site at&nbsp;<a href=\"https:\/\/wp-staging.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">wp-staging.com<\/a>.<\/p>\n\n\n\n<p class=\"callout\">The Events Calendar is not affiliated with the developers of this plugin, and we are unable to assist with any inquiries related to its use.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"how\">How is a staging site used?<\/h2>\n\n\n\n<p>Once you&#8217;ve successfully established your staging site using your method of choice and copied over the contents of your live site, you&#8217;re ready to get started.<\/p>\n\n\n\n<p>Now, whenever you&#8217;d like to make changes to your live site, whether it&#8217;s installing a theme update or adding a new plugin, you&#8217;ll want to navigate over to your staging site and <strong>perform those updates on the staging site first.<\/strong><\/p>\n\n\n\n<p>Pushing site updates to your staging environment first ensures that any post-update issues will be restricted <em>solely<\/em> to your staging site\u2014and visitors on your live site won&#8217;t experience any technical difficulties or downtime. Should you encounter a problem with a particular update, you can delay updating your live site and take the time to troubleshoot thoroughly on staging.<\/p>\n\n\n\n<p>We recommend starting with <a href=\"https:\/\/staging.theeventscalendar.com\/knowledgebase\/k\/testing-for-conflicts\/\" target=\"_blank\" rel=\"noreferrer noopener\">our conflict testing steps<\/a>, then moving on to more advanced troubleshooting as needed. If you should need any extra help as you go, <a href=\"https:\/\/support.theeventscalendar.com\/submit_ticket\" target=\"_blank\" rel=\"noreferrer noopener\">our support team<\/a> is always just a click away.<\/p>\n\n\n\n<p>Once you&#8217;ve confirmed that an update is safe to install on staging, you can easily complete the same update on your live site without fear of consequences! Some staging sites may allow you to perform this task automatically, while others may require updates to be installed manually on both staging and live environments. If you should have any questions about your particular staging setup, please refer to your provider&#8217;s documentation for more information.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>We hope that this guide has successfully demonstrated the many benefits of staging sites and helped you in getting started with your very own! As always, if you should have any further questions or concerns, please don&#8217;t hesitate to reach out to <a href=\"https:\/\/support.theeventscalendar.com\/submit_ticket\" target=\"_blank\" rel=\"noreferrer noopener\">our support team<\/a> for a chat. Cheers, and happy staging!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you logged in to your&nbsp;site and been tempted to click on all the places where WordPress is telling you updates are available? Perhaps it was a new version of WordPress available to install. Or a long-awaited update to a particular plugin. Maybe it&#8217;s a general&nbsp;theme update. Whatever the case, all of us have clicked&#8230;<\/p>\n","protected":false},"author":77,"featured_media":1955565,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_kad_blocks_custom_css":"","_kad_blocks_head_custom_js":"","_kad_blocks_body_custom_js":"","_kad_blocks_footer_custom_js":"","_swpsp_post_exclude":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"ep_exclude_from_search":false,"footnotes":""},"categories":[136],"tags":[],"stellar-product-taxonomy":[],"class_list":["post-1896655","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-updating-plugins"],"acf":[],"taxonomy_info":{"category":[{"value":136,"label":"Plugin Updates"}]},"featured_image_src_large":["https:\/\/images.theeventscalendar.com\/kb\/uploads\/2023\/02\/social-share-1024x538.png",1024,538,true],"author_info":{"display_name":"TEC Staff","author_link":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/author\/tec_staff\/"},"comment_info":0,"category_info":[{"term_id":136,"name":"Plugin Updates","slug":"updating-plugins","term_group":0,"term_taxonomy_id":136,"taxonomy":"category","description":"","parent":63,"count":11,"filter":"raw","term_order":"0","cat_ID":136,"category_count":11,"category_description":"","cat_name":"Plugin Updates","category_nicename":"updating-plugins","category_parent":63}],"tag_info":false,"_links":{"self":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/users\/77"}],"replies":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/comments?post=1896655"}],"version-history":[{"count":1,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896655\/revisions"}],"predecessor-version":[{"id":1956172,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/posts\/1896655\/revisions\/1956172"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media\/1955565"}],"wp:attachment":[{"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/media?parent=1896655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/categories?post=1896655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/tags?post=1896655"},{"taxonomy":"stellar-product-taxonomy","embeddable":true,"href":"https:\/\/staging.theeventscalendar.com\/knowledgebase\/wp-json\/wp\/v2\/stellar-product-taxonomy?post=1896655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}