# Kopie von shopware lokal installieren (XAmpp)

**URL:** <https://forum.shopware.com/t/kopie-von-shopware-lokal-installieren-xampp/101431>\
**Category:** Shopware 6 (German)\
**Created:** [30. September 2023 um 14:40 UTC](https://forum.shopware.com/t/kopie-von-shopware-lokal-installieren-xampp/101431 "2023-09-30T14:40:00Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![DTSchneiderlein](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@DTSchneiderlein](https://forum.shopware.com/u/DTSchneiderlein)\
**Post date:** [30. September 2023 um 14:40 UTC](https://forum.shopware.com/t/kopie-von-shopware-lokal-installieren-xampp/101431/1 "2023-09-30T14:40:00Z")

</div>

Sagt mal… ich versuche eine Kopie meines Webshops offline mit XAmpp zum Laufen zu bekommen. Im www finde sehr viel Anleitungen, wie man shopware lokal installieren kann, aber nicht, wie ich die Kopie meines Webshops anpassen muss, damit sie offline läuft. Ich habe XAmpp installiert, das Shopware-Verzeichnis ins htdocs-Verzeichnis kopiert, die php.ini angepasst und die Datenbank importiert. Dann habe ich versucht die .env anzupassen: APP\_URL=[http://localhost/shopware/public](http://localhost/shopware/public), DATABASE\_URL=mysql://shopware:XXXXXXXX@localhost/shopware

Ich versuche im Browser über [http://localhost/shopware/public](http://localhost/shopware/public) auf den Shop zuzugreifen.

Läuft nicht. Was mache ich falsch?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [30. September 2023 um 16:10 UTC](https://forum.shopware.com/t/kopie-von-shopware-lokal-installieren-xampp/101431/2 "2023-09-30T16:10:48Z")

</div>

Was für eine Fehlermeldung erscheint?

---

<div class="post-metadata">

**Author:** ![DTSchneiderlein](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@DTSchneiderlein](https://forum.shopware.com/u/DTSchneiderlein)\
**Post date:** [30. September 2023 um 17:10 UTC](https://forum.shopware.com/t/kopie-von-shopware-lokal-installieren-xampp/101431/3 "2023-09-30T17:10:52Z")

</div>

Die Seite wird gar nicht erst geladen. Der Browser sucht ziemlich lange und dann kommt Fehler: Verbindung unterbrochen

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [1. Oktober 2023 um 07:15 UTC](https://forum.shopware.com/t/kopie-von-shopware-lokal-installieren-xampp/101431/4 "2023-10-01T07:15:00Z")

</div>

Dann erstelle mal eine test.html in dem Verzeichnis und schau, ob du die aufrufen kannst.

---

<div class="post-metadata">

**Author:** ![DTSchneiderlein](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@DTSchneiderlein](https://forum.shopware.com/u/DTSchneiderlein)\
**Post date:** [2. Oktober 2023 um 06:47 UTC](https://forum.shopware.com/t/kopie-von-shopware-lokal-installieren-xampp/101431/5 "2023-10-02T06:47:42Z")

</div>

Jo  
[http://localhost/shopware/public/test.htm](http://localhost/shopware/public/test.htm)  
kann ich problemlos aufrufen.

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [2. Oktober 2023 um 07:54 UTC](https://forum.shopware.com/t/kopie-von-shopware-lokal-installieren-xampp/101431/6 "2023-10-02T07:54:08Z")

</div>

Vermutlich hast du dann eine Umleitung in Schleife. Schau mal, ob die .htaccess in public stimmt bzw. lösche diese mal um zu sehen, ob du dann eine andere Fehlermeldung erhältst.

---

<div class="post-metadata">

**Author:** ![DTSchneiderlein](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@DTSchneiderlein](https://forum.shopware.com/u/DTSchneiderlein)\
**Post date:** [4. Oktober 2023 um 08:38 UTC](https://forum.shopware.com/t/kopie-von-shopware-lokal-installieren-xampp/101431/7 "2023-10-04T08:38:16Z")

</div>

> [@Max\_Shop](#):
>
> .htaccess

Ich habe die .htaccess im Ordner public gelöscht. Wenn ich nun auf [https://localhost/shopware/public](https://localhost/shopware/public) gehe, dann wird mir im Browser der Ordnerinhalt von public angezeigt ☹

---

<div class="post-metadata">

**Author:** ![DTSchneiderlein](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@DTSchneiderlein](https://forum.shopware.com/u/DTSchneiderlein)\
**Post date:** [4. Oktober 2023 um 08:39 UTC](https://forum.shopware.com/t/kopie-von-shopware-lokal-installieren-xampp/101431/8 "2023-10-04T08:39:52Z")

</div>

Die .htacces sieht so aus:

```auto
# BEGIN Shopware
# The directives (lines) between "# BEGIN Shopware" and "# END Shopware" are dynamically generated. Any changes to the directives between these markers will be overwritten.

DirectoryIndex index.php

<IfModule mod_negotiation.c>
    Options -MultiViews
</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
    RewriteRule ^(.*) - [E=BASE:%1]

    # Sets the HTTP_AUTHORIZATION header removed by Apache
    RewriteCond %{HTTP:Authorization} .
    RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteRule ^index\.php(?:/(.*)|$) %{ENV:BASE}/$1 [R=301,L]

    # If the requested filename exists, simply serve it.
    # We only want to let Apache serve files and not directories.
    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule ^ - [L]

    # Rewrite all other queries to the front controller.
    RewriteRule ^ %{ENV:BASE}/index.php [L]
</IfModule>

<IfModule !mod_rewrite.c>
    <IfModule mod_alias.c>
        RedirectMatch 302 ^/$ /index.php/
    </IfModule>
</IfModule>

<IfModule mod_headers.c>
    <FilesMatch "\.(?i:svg)$">
        Header set Content-Security-Policy "script-src 'none'"
    </FilesMatch>
</IfModule>

# END Shopware

```

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [4. Oktober 2023 um 08:42 UTC](https://forum.shopware.com/t/kopie-von-shopware-lokal-installieren-xampp/101431/9 "2023-10-04T08:42:47Z")

</div>

Das Root Directory scheint also richtig zu sein. Dann füge die .htaccess mal wieder hinzu und ändere in der .env bzw. .env.prod (ich glaube, sie heißt so in SW 6.5) im Hauptordner das ENV von prod auf dev. Dann müsstest du eine konkret Fehlermeldung sehen.

/public/admin funktioniert auch nicht?

---

<div class="post-metadata">

**Author:** ![DTSchneiderlein](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@DTSchneiderlein](https://forum.shopware.com/u/DTSchneiderlein)\
**Post date:** [4. Oktober 2023 um 09:00 UTC](https://forum.shopware.com/t/kopie-von-shopware-lokal-installieren-xampp/101431/10 "2023-10-04T09:00:40Z")

</div>

/admin# geht leider auch nicht.

Die .env habe ich schon auf APP\_ENV=dev eingestellt.

Was mir jetzt noch aufgefallen ist: Wenn ich [https://local](https://local)… verwende, dann kommt die Fehlermeldung: Beim Verbinden mit localhost trat ein Fehler auf. PR\_CONNECT\_RESET\_ERROR

Womöglich gibt es Schwierigkeiten, weil ich über http:/loc… gar nicht zugreifen darf?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [4. Oktober 2023 um 09:04 UTC](https://forum.shopware.com/t/kopie-von-shopware-lokal-installieren-xampp/101431/11 "2023-10-04T09:04:02Z")

</div>

In der htaccess ist normalerweise keine https Weiterleitung eingetragen, sprich ein http Aufruf wird nicht zu https umgeleitet. In dem Fall wäre kein Verkaufskanal zugeordnet und du würdest ein 500er Fehler sehen. /admin würde in dem Fall auch funktionieren.

Aber es kann gut sein, dass in deinem XAmpp etwas mit SSL nicht stimmt. Kannst du das deaktivieren?

---

<div class="post-metadata">

**Author:** ![DTSchneiderlein](https://avatars.discourse-cdn.com/v4/letter/d/ac91a4/32.png) [@DTSchneiderlein](https://forum.shopware.com/u/DTSchneiderlein)\
**Post date:** [4. Oktober 2023 um 09:26 UTC](https://forum.shopware.com/t/kopie-von-shopware-lokal-installieren-xampp/101431/12 "2023-10-04T09:26:07Z")

</div>

> [@Max\_Shop](#):
>
> Aber es kann gut sein, dass in deinem XAmpp etwas mit SSL nicht stimmt. Kannst du das deaktivieren?

Ehrlich gesagt weiß ich nicht wie. Vermutlich muss die Config-file angepasst werden?

Ich habe mal noch einen Blick in die Apache Error.log geworfen. Da steht ungefähr 50000 Mal „VirtualProtect() failed [87] Falscher Parameter“. Hast Du eine Idee was das sein könnte?
