How to Create Staging Site in cPanel
Posted about 10 months ago 4.6kManual Staging Setup
Standard method: Duplicate site in subdomain or subfolder.
Create Staging Subdomain
cPanel → Domains → Create subdomain (e.g., staging.yourdomain.com).
Copy Files
File Manager → Copy public_html to staging folder.
Duplicate Database
Export production DB → Import to new staging DB → Update wp-config.php.
Update URLs
Use Search Replace Tool
Softaculous → Clone → Or use Better Search Replace plugin.
Staging Protection Table
| Protection | Method |
|---|---|
| Password protect | Directory Privacy |
| Noindex | Add robots.txt Disallow: / |
| Block search engines | WordPress reading settings |