--- title: Staging description: A copy of your site environment for testing before production — usually on a subdomain with separate files and database. canonical: https://penasihathosting.com/en/hosting-wiki/staging type: wiki locale: en updated: 2026-07-15 author: Willya Randika --- # Staging ## Overview - **Summary:** A copy of your site environment for testing before production — usually on a subdomain with separate files and database. - **Author:** Willya Randika ([profile](/penulis/willya-randika)) ## Article **Staging** is a copy of your website environment used for testing before changes touch production. It usually lives on a [subdomain](/en/hosting-wiki/subdomain) such as `staging.example.com`, with separate files and database so experiments cannot break the live site. Good staging lowers the risk of theme updates, plugin upgrades, migrations, and major redesigns. Bad staging — weak passwords, Google indexing, or raw customer data left unprotected — creates legal and reputation risk instead. Treat staging as a serious workspace, not a junk drawer. ## A Simple Analogy Production is the restaurant open to guests. Staging is the **practice kitchen** in the back: cooks may fail, rework recipes, and only serve guests when the dish is right. Guests should not wander into the practice kitchen without permission. ## What Is Usually Cloned - Application, theme, and plugin files - Database (sometimes with sanitized data) - A [PHP](/en/hosting-wiki/php) version close to production - Representative [cache](/en/hosting-wiki/web-cache) settings What usually differs: domain name, credentials, payment API keys in test mode, and search indexing. Staging should not email real customers by accident. ## Common Hosting Flow 1. Create a staging subdomain 2. Copy files into the staging [document root](/en/hosting-wiki/document-root) 3. Copy the database and adjust `wp-config` or environment variables 4. Protect with HTTP auth or an IP allowlist 5. Set `noindex` so staging does not compete with production in Google Some hosts offer one-click staging. On manual shared setups, take a [backup](/en/hosting-wiki/backup-hosting) before cloning so you have a rollback point. ## What to Watch For - Do not leave staging open without protection - Sanitize personal customer data when possible - Remember shared resources: staging and production share [EP](/en/hosting-wiki/entry-processes-ep) and disk - After tests, deploy deliberately to live — do not “fix production by habit” - Stale staging content misleads decisions; refresh data when needed ## FAQ Not a legal requirement, but strongly recommended for stores, memberships, or major changes. No. Backups are for emergency restore; staging is for testing. You want both. Yes if you understand their limits and still protect the staging URL. Cache may be off, resources are shared, or the box is weaker. Compare configurations fairly.