{"id":7490,"date":"2023-07-10T08:26:05","date_gmt":"2023-07-10T08:26:05","guid":{"rendered":"https:\/\/chemicloud.com\/kb\/?post_type=ht_kb&#038;p=7490"},"modified":"2024-12-05T10:50:06","modified_gmt":"2024-12-05T10:50:06","slug":"wordpress-staging-environment","status":"publish","type":"ht_kb","link":"https:\/\/chemicloud.com\/kb\/article\/wordpress-staging-environment\/","title":{"rendered":"How to Create a WordPress Staging Environment using WordPress Toolkit"},"content":{"rendered":"<p>This article will teach you how to create a WordPress staging environment using the <a href=\"https:\/\/chemicloud.com\/news\/wordpress-toolkit\" target=\"_blank\" rel=\"noopener\">WordPress Toolkit<\/a> in cPanel.<\/p>\n<p>Suppose you need to do some testing or want to make significant changes to your website. Then, using the WordPress Toolkit, you can easily clone your existing website onto a staging\/development sub-domain (e.g., staging.my-awesome-website.com).<\/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\tThis feature is only available on WordPress Toolkit Pro.    \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>We&#8217;ll assume that you&#8217;ve already installed WordPress. If you haven&#8217;t already installed WordPress on your site, <a href=\"https:\/\/chemicloud.com\/kb\/article\/install-wordpress-in-cpanel-using-wordpress-toolkit\/\" target=\"_blank\" rel=\"noopener\">this article<\/a> will tell you how.<\/p>\n<h2 id=\"create-wordpress-staging\" class=\"has-anchor-hash\"><span id=\"how-to-create-a-wordpress-staging-environment\">How to Create a WordPress Staging Environment<\/span><\/h2>\n<p>To create a staging environment for your WordPress site using the WordPress Toolkit, follow these steps:<\/p>\n<ol>\n<li>Log in to cPanel.\n<div class=\"note msg-box\">    \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\tPlease see <a href=\"https:\/\/chemicloud.com\/kb\/article\/how-to-login-cpanel-whm\/\" target=\"_blank\" rel=\"noopener\">this article<\/a> if you do not know how to log in to your cPanel account.    \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<\/div>\n<\/li>\n<li>In the\u00a0<strong><span class=\"UI\">Domains<\/span><\/strong> section of the cPanel&#8217;s home screen, click <strong><span class=\"UI\">WordPress Management<\/span><\/strong>:\n<figure id=\"attachment_8553\" aria-describedby=\"caption-attachment-8553\" style=\"width: 643px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management-.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-8553\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--783x340.png\" alt=\"WordPress Management\" width=\"643\" height=\"279\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--783x340.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--300x130.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--768x334.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--50x22.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--1536x668.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--2048x890.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--60x26.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--100x43.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/a><figcaption id=\"caption-attachment-8553\" class=\"wp-caption-text\">cPanel &gt; WordPress Management<\/figcaption><\/figure><\/li>\n<li>Next, the WordPress Toolkit page will appear, and you&#8217;ll see the list of the existing WordPress installs.    \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\tIf you do not see any installations listed, you must import them into WordPress Toolkit. Please follow the <a href=\"https:\/\/chemicloud.com\/kb\/article\/import-an-existing-wordpress-website-to-wordpress-toolkit\/\" target=\"_blank\" rel=\"noopener\">instructions in this guide<\/a>.    \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<\/li>\n<li>Locate the site where you want to create a staging environment, and click <strong>Clone<\/strong>.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-7529\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/cPanel-WordPress-Toolkit-Clone-783x289.png\" alt=\"\" width=\"643\" height=\"237\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/cPanel-WordPress-Toolkit-Clone-783x289.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/cPanel-WordPress-Toolkit-Clone-300x111.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/cPanel-WordPress-Toolkit-Clone-768x283.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/cPanel-WordPress-Toolkit-Clone-50x18.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/cPanel-WordPress-Toolkit-Clone-1536x566.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/cPanel-WordPress-Toolkit-Clone-2048x755.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/cPanel-WordPress-Toolkit-Clone-60x22.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/cPanel-WordPress-Toolkit-Clone-100x37.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/li>\n<li>To keep things separate, we <strong>recommend<\/strong> you create a staging environment for your website <strong>using a new subdomain<\/strong>. Additionally, you have the option to use the existing domain or subdomain. In our example, we&#8217;ll use a new subdomain.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-7530\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Clone-Create-Subdomain-783x256.png\" alt=\"\" width=\"643\" height=\"210\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Clone-Create-Subdomain-783x256.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Clone-Create-Subdomain-300x98.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Clone-Create-Subdomain-768x251.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Clone-Create-Subdomain-50x16.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Clone-Create-Subdomain-1536x502.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Clone-Create-Subdomain-60x20.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Clone-Create-Subdomain-100x33.png 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Clone-Create-Subdomain.png 1794w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/li>\n<li>Once you Click <strong><span class=\"UI\">Start, <\/span><\/strong>WordPress Toolkit will begin creating the staging environment for your website.<\/li>\n<li>When staging is complete, click <strong><span class=\"UI\">Close<\/span><\/strong>. You now have an exact copy of your site you can use for testing and\u00a0development.To keep things organized, we recommend you add a Label to both the staging and production environment. To do so, click on the <strong>Add Label<\/strong> button for each WordPress instance, and choose either Production or Staging:<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-7531\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Add-Label-783x326.png\" alt=\"\" width=\"643\" height=\"268\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Add-Label-783x326.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Add-Label-300x125.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Add-Label-768x320.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Add-Label-50x21.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Add-Label-1536x640.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Add-Label-2048x854.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Add-Label-60x25.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/WordPress-Toolkit-Add-Label-100x42.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><br \/>\nWordPress Toolkit is smart enough to disable Search engine indexing, so you don&#8217;t have to worry about duplicate content on search engines.<\/p>\n<h2 id=\"how-to-push-changes-from-staging-to-production-environment-live-website\" class=\"firstHeading\" lang=\"en\">How to Push Changes from Staging to Production Environment (Live Website)<\/h2>\n<p>Now that you\u2019ve worked on your website in the staging environment, it has come time to push any changes in production, which means pushing any changes to the live website. To do so, please follow the steps below:<\/p>\n<p>1. Log in to cPanel.<\/p>\n<div class=\"note msg-box\">    \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\tPlease see <a href=\"https:\/\/chemicloud.com\/kb\/article\/how-to-login-cpanel-whm\/\" target=\"_blank\" rel=\"noopener\">this article<\/a> if you do not know how to log in to your cPanel account.    \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<\/div>\n<p>2. In the <strong><span class=\"UI\">Domains<\/span><\/strong> section of the cPanel&#8217;s home screen, click <strong><span class=\"UI\">WordPress Management<\/span><\/strong>:<\/p>\n<figure id=\"attachment_8553\" aria-describedby=\"caption-attachment-8553\" style=\"width: 643px\" class=\"wp-caption alignnone\"><a href=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management-.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-8553\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--783x340.png\" alt=\"WordPress Management\" width=\"643\" height=\"279\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--783x340.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--300x130.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--768x334.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--50x22.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--1536x668.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--2048x890.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--60x26.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2023\/07\/cPanel-WordPress-Management--100x43.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/a><figcaption id=\"caption-attachment-8553\" class=\"wp-caption-text\">cPanel &gt; WordPress Management<\/figcaption><\/figure>\n<p>3. Next, the WordPress Toolkit page will appear, and you&#8217;ll see the list of the existing WordPress installs.<\/p>\n<p>4. Locate the staging environment you wish to push into production and click <strong><span class=\"UI\">Copy Data<\/span><\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-7532\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/Staging-Environment-Copy-Data-783x291.png\" alt=\"\" width=\"643\" height=\"239\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/Staging-Environment-Copy-Data-783x291.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/Staging-Environment-Copy-Data-300x111.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/Staging-Environment-Copy-Data-768x285.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/Staging-Environment-Copy-Data-50x19.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/Staging-Environment-Copy-Data-1536x571.png 1536w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/Staging-Environment-Copy-Data-2048x761.png 2048w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/Staging-Environment-Copy-Data-60x22.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/Staging-Environment-Copy-Data-100x37.png 100w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><br \/>\n5. The <span class=\"UI\">Copy Data<\/span>\u00a0dialog box appears:<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-7533\" src=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/Copy-Data-from-Staging-to-Production-783x309.png\" alt=\"\" width=\"643\" height=\"254\" srcset=\"https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/Copy-Data-from-Staging-to-Production-783x309.png 783w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/Copy-Data-from-Staging-to-Production-300x118.png 300w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/Copy-Data-from-Staging-to-Production-768x303.png 768w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/Copy-Data-from-Staging-to-Production-50x20.png 50w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/Copy-Data-from-Staging-to-Production-60x24.png 60w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/Copy-Data-from-Staging-to-Production-100x39.png 100w, https:\/\/chemicloud.com\/kb\/wp-content\/uploads\/2022\/11\/Copy-Data-from-Staging-to-Production.png 1268w\" sizes=\"auto, (max-width: 643px) 100vw, 643px\" \/><\/p>\n<p>6. Under <span class=\"UI\">Location<\/span>, select the destination (target) website. This will be the production (live website)<\/p>\n<p>7. Under <strong><span class=\"UI\">Data to Copy<\/span><\/strong>, select whether you want to copy files, the database, or both<br \/>\n8. Under <strong><span class=\"UI\">Database Tables<\/span><\/strong>, select whether you want to copy specific tables, new tables, or all tables<br \/>\n9. Optionally, select the <em>Create a restore point<\/em> check box under Restore to create a restore point. A restore point enables you to revert the copied data if the site does not work correctly.<br \/>\n10. Click <strong><span class=\"UI\">Start<\/span><\/strong>. WordPress Toolkit copies the data you specified.<\/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<\/li>\n<\/ol>\n<p>That\u2019s it !! Your staging changes have been pushed to your live website.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article will teach you how to create a WordPress staging environment using the WordPress Toolkit in cPanel. Suppose you need to do some testing or want to make significant changes to your website. Then, using the WordPress Toolkit, you can easily clone your existing website onto a staging\/development sub-domain&#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":[231],"ht-kb-tag":[],"class_list":["post-7490","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-wordpress-toolkit"],"_links":{"self":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/7490","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=7490"}],"version-history":[{"count":9,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/7490\/revisions"}],"predecessor-version":[{"id":8558,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb\/7490\/revisions\/8558"}],"wp:attachment":[{"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/media?parent=7490"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-category?post=7490"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/chemicloud.com\/kb\/wp-json\/wp\/v2\/ht-kb-tag?post=7490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}