{"id":1195,"date":"2018-08-28T12:11:50","date_gmt":"2018-08-28T12:11:50","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=article&#038;p=1195"},"modified":"2021-02-24T18:50:10","modified_gmt":"2021-02-24T18:50:10","slug":"how-to-create-a-staging-environment-for-wordpress","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/how-to-create-a-staging-environment-for-wordpress\/","title":{"rendered":"How to Create a Staging Environment for Your WordPress Website"},"content":{"rendered":"<h3 id=\"what-is-a-staging-environment\">What Is a Staging Environment?<\/h3>\n<p>A staging environment is a copy of your website in a production state where you can preview any changes, test upgrades, plugins, or themes before you apply them on your live website. This prevents any downtime or unexpected errors on your live website.<\/p>\n<p>If you are a <strong><a href=\"https:\/\/chemicloud.com\" target=\"_blank\" rel=\"noopener noreferrer\">ChemiCloud<\/a><\/strong> customer, we&#8217;ve got you covered. Our new <strong>Staging<\/strong>\u00a0feature will help you create and manage staging copies with one just click.<\/p>\n<h3 id=\"creating-a-staging-environment\">Creating a Staging Environment<\/h3>\n<p>We will be taking an example of a\u00a0<b>WordPress<\/b> installation. We will create a staging on a<b> subdomain.<br \/>\n<\/b><\/p>\n    \t\t<div class=\"hts-messages hts-messages--info   hts-messages--withicon \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tIn order to keep things separately, we strongly recommending you to <strong><a href=\"https:\/\/chemicloud.com\/kb\/article\/create-new-subdomain-in-cpanel\/\" target=\"_blank\" rel=\"noopener noreferrer\">create a subdomain<\/a><\/strong> and use it for the staging environment.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p><iframe loading=\"lazy\" width=\"560\" height=\"315\" src=\"https:\/\/www.youtube.com\/embed\/UkMLiM8H3WE\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen><\/iframe><\/p>\n<p>Step 1) <strong><a href=\"https:\/\/chemicloud.com\/kb\/article\/how-to-login-cpanel-whm\/\" target=\"_blank\" rel=\"noopener noreferrer\">Log in to cPanel<\/a><\/strong><\/p>\n<p>Step 2) Scroll down to <strong>Software<\/strong> and choose\u00a0<strong>Softaculous Apps Installer<\/strong><\/p>\n<figure id=\"attachment_4759\" aria-describedby=\"caption-attachment-4759\" style=\"width: 643px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-4759\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous-783x203.png\" alt=\"\" width=\"643\" height=\"167\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous-783x203.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous-300x78.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous-768x199.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous-50x13.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous-1536x398.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous-60x16.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous-100x26.png 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous.png 1944w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><figcaption id=\"caption-attachment-4759\" class=\"wp-caption-text\">cPanel &gt; Software &gt; Softaculous<\/figcaption><\/figure>\n<p>Step 3) Once you&#8217;ll see the Softaculous dashboard, click on the <strong>I<\/strong><strong>nstallations<\/strong> box.<\/p>\n<figure id=\"attachment_4760\" aria-describedby=\"caption-attachment-4760\" style=\"width: 643px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-4760\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-783x171.png\" alt=\"\" width=\"643\" height=\"140\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-783x171.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-300x65.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-768x168.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-50x11.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-1536x335.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-2048x447.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-60x13.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-100x22.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><figcaption id=\"caption-attachment-4760\" class=\"wp-caption-text\">Softaculous &gt; Installations<\/figcaption><\/figure>\n<p>Step 4) Choose the installation you want to create staging then click on the <b>Create Staging<\/b>\u00a0button.<\/p>\n<figure id=\"attachment_4761\" aria-describedby=\"caption-attachment-4761\" style=\"width: 643px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-4761\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Options-Create-Staging-783x222.png\" alt=\"\" width=\"643\" height=\"182\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Options-Create-Staging-783x222.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Options-Create-Staging-300x85.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Options-Create-Staging-768x217.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Options-Create-Staging-50x14.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Options-Create-Staging-1536x435.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Options-Create-Staging-60x17.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Options-Create-Staging-100x28.png 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Options-Create-Staging.png 2020w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><figcaption id=\"caption-attachment-4761\" class=\"wp-caption-text\">Options &gt; Create Staging<\/figcaption><\/figure>\n<p>In case you do not see any installations listed, it means that you have manually installed your application and you need to import it in Softaculous. Please follow the <strong><a href=\"https:\/\/chemicloud.com\/kb\/article\/how-to-import-your-existing-application-installation-in-softaculous\/\" target=\"_blank\" rel=\"noopener noreferrer\">instructions in this guide<\/a>.<\/strong><\/p>\n<p>Step 5)\u00a0 Choose the <strong>installation URL<\/strong> on which the staging will be created. In our case, we&#8217;ve selected the staging.thiswillbemyawesome.website subdomain from the dropdown menu. The protocol should be https:\/\/<\/p>\n<p>Under the Site Settings, you should disable the search engine visibility. If checked then this shall discourage search engines from indexing the staging site in order to avoid duplicate content.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-4762\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Create-Staging-1-783x459.png\" alt=\"\" width=\"643\" height=\"377\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Create-Staging-1-783x459.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Create-Staging-1-300x176.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Create-Staging-1-768x450.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Create-Staging-1-50x29.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Create-Staging-1-1536x901.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Create-Staging-1-60x35.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Create-Staging-1-100x59.png 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Create-Staging-1.png 2026w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<p>Step 6) Finally, click on the <b>Create Staging<\/b> button.<\/p>\n<p>The time taken may vary in accordance with the size of your website, so please be patient.<\/p>\n<p>Once the staging has been created, you&#8217;ll see a successful message like the one in this screenshot:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-4764 size-medium\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Congrats-300x85.png\" alt=\"\" width=\"300\" height=\"85\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Congrats-300x85.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Congrats-783x222.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Congrats-768x218.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Congrats-50x14.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Congrats-60x17.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Congrats-100x28.png 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Congrats.png 974w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/p>\n    \t\t<div class=\"hts-messages hts-messages--info   hts-messages--withicon \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\t<b>NOTE<\/b>\u00a0: The username and password for the Admin account will be the same as the source installation.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p>That&#8217;s a wrap !! You can now use the staging environment you&#8217;ve just set up.<\/p>\n<h3 id=\"firstHeading\" class=\"firstHeading\" lang=\"en\"><span id=\"push-to-live\">Push to Live<\/span><\/h3>\n<p>Now that you&#8217;ve worked on your website in the staging environment, it has come the time to push any changes in production, which means to push any changes to the live website. In order to do so, please follow the steps below:<\/p>\n<ol>\n<li><a href=\"https:\/\/chemicloud.com\/kb\/article\/how-to-login-cpanel-whm\/\" target=\"_blank\" rel=\"noopener noreferrer\">Log into cPanel<\/a><\/li>\n<li>Scroll down to <strong>Software<\/strong> and choose\u00a0<strong><strong>Softaculous Apps Installer<br \/>\n<\/strong><\/strong><\/p>\n<figure id=\"attachment_4759\" aria-describedby=\"caption-attachment-4759\" style=\"width: 643px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-4759\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous-783x203.png\" alt=\"\" width=\"643\" height=\"167\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous-783x203.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous-300x78.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous-768x199.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous-50x13.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous-1536x398.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous-60x16.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous-100x26.png 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/cPanel-Software-Softaculous.png 1944w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><figcaption id=\"caption-attachment-4759\" class=\"wp-caption-text\">cPanel &gt; Software &gt; Softaculous<\/figcaption><\/figure><\/li>\n<li>Once you&#8217;ll see the Softaculous dashboard, click on the <strong>Installations<\/strong> box.\n<figure id=\"attachment_4760\" aria-describedby=\"caption-attachment-4760\" style=\"width: 643px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-4760\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-783x171.png\" alt=\"\" width=\"643\" height=\"140\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-783x171.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-300x65.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-768x168.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-50x11.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-1536x335.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-2048x447.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-60x13.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Softaculous-Installations-100x22.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><figcaption id=\"caption-attachment-4760\" class=\"wp-caption-text\">Softaculous &gt; Installations<\/figcaption><\/figure><\/li>\n<li>Choose the Staging installation you want to push to live and click on the\u00a0<b>Push To Live<\/b>\u00a0button corresponding to it.<\/li>\n<\/ol>\n<figure id=\"attachment_4765\" aria-describedby=\"caption-attachment-4765\" style=\"width: 643px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-4765\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-to-Live-783x269.png\" alt=\"\" width=\"643\" height=\"221\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-to-Live-783x269.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-to-Live-300x103.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-to-Live-768x264.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-to-Live-50x17.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-to-Live-1536x528.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-to-Live-60x21.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-to-Live-100x34.png 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-to-Live.png 2014w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><figcaption id=\"caption-attachment-4765\" class=\"wp-caption-text\">Options &gt; Push to Live<\/figcaption><\/figure>\n<p>5.\u00a0 On the next page, you will see two options to push the installation to live.<\/p>\n<ul>\n<li><b>Default options: <\/b>this will replace all the files of your live installation with the ones in Staging installation and will <strong>erase the live database<\/strong> and <strong>import the<\/strong> database from your staging installation.<\/li>\n<li><b>Customize: <\/b>with this option you will be able to choose files, full database, and tables structures, and tables data you want to push.<\/li>\n<\/ul>\n<figure id=\"attachment_4766\" aria-describedby=\"caption-attachment-4766\" style=\"width: 643px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-4766\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-To-Live-Customize-783x397.png\" alt=\"\" width=\"643\" height=\"326\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-To-Live-Customize-783x397.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-To-Live-Customize-300x152.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-To-Live-Customize-768x390.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-To-Live-Customize-50x25.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-To-Live-Customize-1536x779.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-To-Live-Customize-60x30.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-To-Live-Customize-100x51.png 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2018\/08\/Push-To-Live-Customize.png 2006w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><figcaption id=\"caption-attachment-4766\" class=\"wp-caption-text\">Push To Live (Customize)<\/figcaption><\/figure>\n<p>6. Click on the\u00a0<b>Push To Live<\/b> button.<\/p>\n    \t\t<div class=\"hts-messages hts-messages--info   hts-messages--withicon \"   >\r\n    \t\t\t    \t\t\t    \t\t\t\t<p>\r\n    \t\t\t\t\tThe time taken may vary in accordance with the size of the data that is being pushed, so please be patient.    \t\t\t\t<\/p>\r\n    \t\t\t    \t\t\t\r\n    \t\t<\/div><!-- \/.ht-shortcodes-messages -->\r\n    \t\t\n<p>That&#8217;s it !! Your staging changes have been pushed to your live website. You will receive the pushed installation details via email (if the emails are enabled).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What Is a Staging Environment? A staging environment is a copy of your website in a production state where you can preview any changes, test upgrades, plugins, or themes before you apply them on your live website. This prevents any downtime or unexpected errors on your live website. If you&#8230;<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"ht-kb-category":[40],"ht-kb-tag":[],"class_list":["post-1195","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-wordpress"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/1195","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/comments?post=1195"}],"version-history":[{"count":10,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/1195\/revisions"}],"predecessor-version":[{"id":4854,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/1195\/revisions\/4854"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=1195"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=1195"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=1195"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}