How to set up a staging environment
Updated 10/16/2026
A staging environment is a copy of production where you test changes before they reach customers. It catches problems before they hurt.
What must be identical
- The same operating system and software versions.
- The same web server and database configuration.
- Representative test data (no real sensitive data).
1. A separate server
Cleanest is a dedicated VPS for staging. With hourly billing, you can start a staging server only while you test and delete it after, paying very little.
2. A separate subdomain
staging.example.com A STAGING_SERVER_IP
3. Protect it
Staging should not be indexed by Google or publicly accessible. Add basic authentication and a robots.txt that blocks indexing.
4. Copy data from production
Periodically bring a copy of the database, see migrating a database, but anonymize sensitive customer data.
The full flow
You develop locally, deploy to staging, test, then deploy to production, ideally through a CI/CD pipeline.
Put this guide into practice on your own VPS
EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.
See pricingRelated tutorials
How to send WhatsApp messages from your apps with OpenWA
OpenWA gives you a REST API over WhatsApp, on your own server. Here is how to install it, connect it and send your first message, safely.
Updated 10/16/2026Dev environmentsHow to deploy an app from Git with Openship
From a Git repo to a live app, with a database, domain and SSL, on your own server, with no config files.
Updated 10/16/2026Dev environmentsHow to install PHP (multiple versions) and Composer
Install the PHP version your project needs, along with Composer for package management.
Updated 10/16/2026