Setting up How to set up a staging environment in Shopware.
Install the plugin, click through the assistant, read the preflight, build. A name is usually enough, the assistant takes safe defaults for everything else. The live shop is only read along the way.
From the plugin to the first staging environment.
- 1Install the plugin
Get the Staging Manager for free in the Shopware Store, then install and activate it under Extensions › My extensions. The plugin then sits in the menu under Extensions › Staging Manager.
- 2Start the assistant
On the dashboard, choose "Set up with the assistant". A name is enough; directory, address and database follow it.
- 3Read the preflight
The last step of the assistant checks server, database and web server. Whatever stops the build is listed there with what you can do about it.
- 4Build
Start "Build staging environment" on the dashboard or on the page of the staging environment. The run window shows every step.
- 5Hand it on
"Show credentials" gives address, password and default user to copy, for an agency for instance.
Seven steps, most of them with "Next".
"Set up with the assistant" only asks what matters. The staging environment is created only with "Next" on the overview, and built only when you start the build.
Name, place and address. Directory, address and database follow the name, such as your-shop.example/stage1.
New or existing database, checked at once. The live shop's is only read.
The one decision about the data: anonymized or real customer data.
Which plugins and apps run in the staging environment. With the purple chain, the state from the live shop applies.
Password page, default user, scheduled tasks and mails. The careful way is preselected each time.
Everything at a glance, then create. Nothing is built yet.
The preflight says whether the build works on this server.
Check first, then build.
The preflight changes nothing. It checks PHP, the database and the privileges of its user, the web server, the free space at the target, the services of the live shop and the anonymization.
Protection of the live shop first: directory, database and address of the live shop are never the target of a build.
"Blocked" stops the build, "Not recommended" only warns, then you decide.
Each point says what you can do, and a click leads to the tab where you fix it. Then "Check again".
Every build runs the preflight by itself first.
The run window shows every step.
The first build copies files and database, anonymizes the personal data, sets the staging environment up, starts it and finally checks it itself.
While it builds, the address of the staging environment shows "Staging environment is being prepared" instead of its storefront.
It builds in small slices. You may close the window, and an interrupted run continues where it stopped.
Before the start, the run window shows what the run does and lets you switch extensions and admin users for this run only.
Creating also works without the assistant.
Leads through what is needed and takes safe defaults for everything else. At the end the preflight says whether the build works.
Opens the empty page of a new staging environment with all tabs, for those who know exactly what they set. Only the name is required.
In the row menu of the list: a new staging environment with the same settings. Schedule and default user are off, credentials are set up anew.
A new staging environment is listed as "Never built" until you start the first build. After that, name, address, database, data and setup are fixed; you can change them only after "Tear down staging environment", and the settings stay. Protection and expiry date apply at once when saved.
What shop owners ask about it.
Do I need access to the server?
No shell and no SSH: everything runs in the administration of the live shop, creating, building, refreshing and tearing down. Under Apache a subdirectory needs nothing else. Under nginx each staging environment in a subdirectory needs a location block that the plugin shows ready to copy; for a domain of its own you point its document root to the copy's public folder with your host.
Do I have to create a database first?
Only if your database user may not create databases. With "Create a new database" the plugin creates it on the first build. With "Choose an existing database" you take an empty one, from your hosting panel for instance. The preflight says which way works on your server and, if a privilege is missing, names it.
What happens when I close the run window?
The run carries on in the background as long as "Carry runs in the background" is on in the plugin settings and the live shop runs scheduled tasks. Otherwise it waits until you open it again with "Continue run". An interrupted run continues where it stopped.
How long does the first build take?
That depends on files and database of your shop. A build runs in small slices, so size does not make it fail. After the first build, the preflight shows "A build takes about" with the measured time.
More about the plugin
-
What gets copied
Which files and tables come along, what stays empty and how rebuilding, refreshing and tearing down work.
-
Anonymization
The rule set, the replacements per column, the preview and the record of every build.
-
Protection and access
Password page, IP addresses without a password, default user, credentials and maintenance mode.
-
Emails and calls
Four ways for emails, three for calls from apps and webhooks, plus scheduled tasks and analytics.
-
Services and plugins
Search, Redis, queue, reverse proxy and plugins: what the copy shares with the live shop.
-
Differences to the live shop
The comparison shows plugins, apps, settings, content, files and database structure, each with its side.
-
Schedule and automation
Schedule, lifetime with reminder, Flow Builder and console commands.
-
Hosting and server
What gets written on the server, Apache, nginx, an address of its own, database privileges and SFTP.
-
Comparison with the standard
What Shopware does itself with system:setup:staging and what the plugin adds.
-
Pricing
What a staging environment costs, monthly or yearly, and what each plan includes.