Skip to content

Instantly share code, notes, and snippets.

@vanWittlaer
Last active December 8, 2025 07:20
Show Gist options
  • Select an option

  • Save vanWittlaer/def64280969ff3e8d2934ac03b206828 to your computer and use it in GitHub Desktop.

Select an option

Save vanWittlaer/def64280969ff3e8d2934ac03b206828 to your computer and use it in GitHub Desktop.
Shopware 6 - ddev Quick Install
#!/usr/bin/env bash
# What it does:
# - Creates a local Shopware installation using the Symfony Flex template for local development of client projects
# - Prerequisites: ddev installed on your machine, see https://ddev.com/get-started/
# - See also: https://docs.ddev.com/en/stable/users/quickstart/#shopware
#
# How to use:
# - create a project folder
# - copy this file into the project folder
# - chmod +x install.sh
# - ./install.sh
set -e
echo "Config ddev project (remember to adjust php and nodejs versions to your Shopware release!) ..."
ddev config --project-type=shopware6 --docroot=shopware/public --web-environment="APP_ENV=dev" \
--web-working-dir=/var/www/html/shopware --composer-root=shopware \
--database=mysql:8.4 --php-version=8.3 --nodejs-version=22 --webserver-type=apache-fpm
ddev start
echo "Composer create-project shopware ..."
ddev composer create-project shopware/production -n
echo "Installing Shopware ..."
ddev exec bin/console system:install --basic-setup --shop-locale=de-DE
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment