Setup Shopware
Setup Shopware
This example installs Shopware 6 inside the Devilbox PHP container and serves its public directory through htdocs.
Overview
| Project name | Container path | Database | TLD_SUFFIX | Project URL |
|---|---|---|---|---|
my-sw | /shared/httpd/my-sw | my_sw | lvh.me | http://my-sw.lvh.me / https://my-sw.lvh.me |
Projects live in /shared/httpd/ inside the PHP container and in ./data/www/ on the host.
Prerequisites
- Devilbox with a PHP version supported by your Shopware 6 release.
- MySQL, Redis, HTTPD, and Bind services.
- Composer available in the PHP container.
Start the stack:
./dvl.sh up php httpd mysql redis bindWalk through
It will be ready in seven steps:
- Enter the PHP container.
- Create a new virtual host directory.
- Install Shopware 6.
- Link
public/tohtdocs. - Add the MySQL database.
- Verify DNS.
- Follow the browser installer.
1. Enter the PHP container
./dvl.sh shell php832. Create the vhost directory
mkdir -p /shared/httpd/my-swcd /shared/httpd/my-sw3. Install Shopware 6
Use the official production template:
composer create-project shopware/production shopwareExpected structure:
tree -L 1.└── shopware4. Link the webroot
ln -s shopware/public htdocsExpected structure:
tree -L 1.├── shopware└── htdocs -> shopware/public5. Add the MySQL database
mysql -u root -h 127.0.0.1 -p -e 'CREATE DATABASE my_sw CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;'6. Verify DNS
my-sw.lvh.me resolves to localhost by default. Add a hosts entry only for custom suffixes.
7. Follow install steps in your browser
Open http://my-sw.lvh.me or https://my-sw.lvh.me and follow the Shopware installer.
Use these database values:
- Database server:
127.0.0.1 - Database user:
root - Database password: your
.envvalue - Database name:
my_sw
Next steps
- Use Adminer or phpMyAdmin from the Devilbox intranet to inspect
my_sw. - Configure HTTPS trust for administration testing.
- Add OpenSearch or queue workers only when your Shopware setup requires them.