# How to Separate Development, Staging and Production

https://ferkesh.net/uk/baza-znan/stattia/development-staging-production-workflow

![Diagram linking Define three roles, Isolate live services, Test a candidate and Release with rollback.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-06.svg#development-staging-production-workflow)

Development is where changes are made. Staging is where a specific release is evaluated against representative settings. Production serves real users. A clear promotion path matters more than the number of environments because each step should answer a different question.

## Set the release boundary

1. Give each environment its own hostname, credentials and data store. Protect staging from the public and disable production mail, payments, callbacks and automatic jobs in a cloned copy.
2. Test a specific version on staging with synthetic or approved sanitized data. Record the environment differences that matter, including PHP, caching and a distinct domain.
3. Define how the checked source and assets reach production. Capture the backup, confirm what rollback covers, and check a small production path immediately afterward.

Avoid pushing a staging database over production when production continues accepting writes. Identify data-specific migrations and preserve customer changes separately.

## Related guides

- [How to Create a Safe WordPress Staging Copy](https://ferkesh.net/knowledgebase/article/wordpress-staging-copy)
- [WordPress Migration Checklist for an Existing Site](https://ferkesh.net/knowledgebase/article/wordpress-migration-checklist)
- [How to Preview a Website in Plesk Before Changing DNS](https://ferkesh.net/knowledgebase/article/plesk-preview-before-dns-change)
- [Getting Started category](https://ferkesh.net/knowledgebase/category/getting-started)

## Official references

- [WordPress migration handbook](https://developer.wordpress.org/advanced-administration/upgrade/migrating/)
- [WordPress hardening handbook](https://developer.wordpress.org/advanced-administration/security/hardening/)

Ferkesh Hosting. Last reviewed November 26, 2026.
