Dieses Kapitel führt Sie durch die Installation von Shopware 6 mit den spezifischen Anforderungen für das ShopBite Plugin.
# Erforderliche PHP-Erweiterungen
php -m | grep -E "(ctype|curl|gd|intl|json|mbstring|openssl|pdo_mysql|tokenizer|xml|zip)"
# Fehlende Erweiterungen installieren (Ubuntu/Debian)
sudo apt-get install php8.4-{ctype,curl,gd,intl,json,mbstring,openssl,pdo_mysql,tokenizer,xml,zip}
Das ShopBite Plugin unterstützt Shopware 6.7.0 und höher. Wir empfehlen die Verwendung der aktuellen stabilen Version.
Folgen Sie der offiziellen Shopware-Dokumentation:
# Shopware herunterladen
wget https://www.shopware.com/download -O shopware.zip
unzip shopware.zip
cd shopware
# Installation starten
php bin/console system:install
Für eine schnelle Einrichtung mit ShopBite-spezifischen Konfigurationen:
# Repository klonen
git clone https://github.com/shopbite-de/shopware.git
cd shopware
# Abhängigkeiten installieren
composer install
# Datenbank einrichten
bin/console system:install \
--db-host=localhost \
--db-user=shopware \
--db-password=securepassword \
--db-name=shopware \
--shop-name="Mein ShopBite Shop" \
--shop-locale=de-DE \
--currency=EUR \
--admin-username=admin \
--admin-password=secureadminpassword \
--admin-email=admin@mein-shop.de
order:read, order:write, product:read# Cache-Konfiguration
bin/console cache:configure --env=prod
# OPcache aktivieren
php -i | grep opcache
# Shopware-Cache optimieren
bin/console cache:pool:clear
bin/console cache:warmup
-- MySQL-Optimierung
SET GLOBAL innodb_buffer_pool_size = 1024 * 1024 * 1024; -- 1GB
SET GLOBAL innodb_log_file_size = 256 * 1024 * 1024; -- 256MB
SET GLOBAL innodb_flush_log_at_trx_commit = 2;
-- Indizes für ShopBite-Tabellen
ALTER TABLE `shopbite_business_hour` ADD INDEX `idx_sales_channel` (`sales_channel_id`);
ALTER TABLE `shopbite_holiday` ADD INDEX `idx_sales_channel` (`sales_channel_id`);
# Wartungsmodus aktivieren
bin/console maintenance:enable
# Backup erstellen
mysqldump -u shopware -p shopware > shopware_backup_$(date +%Y-%m-%d).sql
tar -czvf shopware_files_$(date +%Y-%m-%d).tar.gz public/ config/
# Shopware-Update
composer update shopware/core
bin/console system:update:prepare
bin/console system:update:finish
# Datenbank-Migrationen ausführen
bin/console database:migrate
# Cache leeren
bin/console cache:clear
# Wartungsmodus deaktivieren
bin/console maintenance:disable
# Plugin-kompatibilität prüfen
bin/console plugin:check-compatibility
# ShopBite-spezifische Migrationen ausführen
bin/console database:migrate --all ShopBite
Symptome:
Lösung:
# PHP-Version prüfen
php -v
# PHP 8.4 installieren (Ubuntu/Debian)
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo apt-get install php8.4
# PHP-Version wechseln
sudo update-alternatives --config php
Symptome:
Lösung:
# Datenbankdienst prüfen
sudo systemctl status mysql
# Datenbank neu starten
sudo systemctl restart mysql
# Berechtigungen prüfen
mysql -u root -p
GRANT ALL PRIVILEGES ON shopware.* TO 'shopware'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
Symptome:
Lösung:
# Cache-Berechtigungen setzen
sudo chmod -R 777 var/cache
sudo chown -R www-data:www-data var/
# Cache leeren
bin/console cache:clear --no-warmup
bin/console cache:warmup