How to create a staging environment for your PrestaShop store

On this page
  1. The Pre-Flight Checklist
  2. Step-by-Step Staging Setup for PrestaShop
  3. Securing Your 2026 Staging Environment
  4. Summary: Staging Management on mybox

Creating a staging environment for your PrestaShop store is the most effective way to ensure that a new module or a version update doesn’t “break” your business. In April 2026, PrestaShop remains a complex engine where a single database mismatch can cause a checkout failure.

By following this workflow on your mybox server, you can create a safe “sandbox” to test everything from tax changes to design overhauls.

The Pre-Flight Checklist

Before you begin, ensure you have the following:

  • Current Backups: Never start a migration without a fresh backup of your production files and database.
  • Server Space: Ensure your mybox plan has enough disk space to hold a full clone of your store.
  • Database Credentials: You will need to create a new, empty database in your mybox panel before starting Step 3.

Step-by-Step Staging Setup for PrestaShop

1. Subdomain Creation

Log in to your mybox panel and create a subdomain, such as test-store.yourdomain.ro. Point this subdomain to a new, empty folder on your server (e.g., /public_html/staging).

2. File Duplication

Use an FTP client (like FileZilla) to copy all files from your main directory to the staging folder.

3. Database Cloning

  1. Open phpMyAdmin and export your live database.
  2. Create a new database and a new user in your hosting panel.
  3. Import the SQL file into the new database.

4. Linking the Staging Site to the Staging Database

You must tell the staging files to look at the new database, not the production one.

  • For PrestaShop 1.7 & 8.x: Edit /app/config/parameters.php.
  • For older versions: Edit /config/settings.inc.php.Update the database_name, database_user, and database_password fields.

5. Updating the Store URL

If you try to log in now, the site will redirect you back to the live store. You must change the URL in the database.

  1. In phpMyAdmin, go to the ps_shop_url table.
  2. Change domain and domain_ssl to your subdomain (e.g., test-store.yourdomain.ro).
  3. Ensure physical_uri matches your path (usually / if using a subdomain).

6. Regenerating .htaccess and Clearing Cache

  1. Delete the contents of the /var/cache/ directory manually.
  2. Log in to your PrestaShop staging back office.
  3. Navigate to Shop Parameters ➜ Traffic & SEO.
  4. Toggle Friendly URL to “No,” save, then toggle back to “Yes” and save again. This regenerates a clean .htaccess file for the staging environment.

Securing Your 2026 Staging Environment

To prevent Google from indexing your test store as “duplicate content” or customers accidentally placing “fake” orders:

  • Password Protection: Enable HTTP Authentication (htpasswd) in your mybox panel for the staging folder. This is the only 100% effective way to block bots.
  • Maintenance Mode: Go to Shop Parameters ➜ General ➜ Maintenance and enable it, adding your personal IP to the whitelist so only you can see the frontend.
  • Robots.txt: Ensure your staging robots.txt contains:PlaintextUser-agent: * Disallow: /

Summary: Staging Management on mybox

Task Production (Live) Staging (Test)
Debug Mode OFF (for security/speed) ON (to catch errors)
Caching ON (LiteSpeed/Memcached) OFF (to see changes instantly)
Indexing Public Private (Blocked)
Email Active Disabled (to prevent test emails to customers)

Didn't find an answer?

Our support team is here for you 24/7 – write to us and we will help you sort it out.