# Speicherort der SW6-Konfigurations-PHO-Datei

**URL:** <https://forum.shopware.com/t/speicherort-der-sw6-konfigurations-pho-datei/91041>\
**Category:** Shopware 6 (German)\
**Created:** [22. Oktober 2021 um 10:45 UTC](https://forum.shopware.com/t/speicherort-der-sw6-konfigurations-pho-datei/91041 "2021-10-22T10:45:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Scott](https://forum.shopware.com/u/Scott)\
**Post date:** [22. Oktober 2021 um 10:45 UTC](https://forum.shopware.com/t/speicherort-der-sw6-konfigurations-pho-datei/91041/1 "2021-10-22T10:45:26Z")

</div>

Google Translate

Wo ist die Datei SW6 config.php gespeichert, die die Datenbankinformationen enthält.

Die SW6-Dokumentation sagt es im Root-Verzeichnis, es ist nicht dort. Ich habe eine vollständige Dateisuche durchgeführt und 4 Ergebnisse erhalten, von denen keine die Datenbankinformationen der Site, den Benutzernamen, das Passwort usw. enthalten.

hier sind die gefundenen Dateien

tcpdf\_autoconfig.php  
tcpdf\_config.php  
test\_config.php  
config.php

---

<div class="post-metadata">

**Author:** ![SmartStylez](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@SmartStylez](https://forum.shopware.com/u/SmartStylez)\
**Post date:** [22. Oktober 2021 um 11:29 UTC](https://forum.shopware.com/t/speicherort-der-sw6-konfigurations-pho-datei/91041/2 "2021-10-22T11:29:32Z")

</div>

Das ist eine .env-Datei.

---

<div class="post-metadata">

**Author:** ![Scott](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Scott](https://forum.shopware.com/u/Scott)\
**Post date:** [23. Oktober 2021 um 17:31 UTC](https://forum.shopware.com/t/speicherort-der-sw6-konfigurations-pho-datei/91041/3 "2021-10-23T17:31:26Z")

</div>

Why does the Shopware official documentation says its a config.php located in the Root directory of the Showpare 6 installation?

I completed a full server file search and there is no file labeled .env-Datei

Warum sagt die offizielle Shopware-Dokumentation, dass es sich um eine config.php im Root-Verzeichnis der Showpare 6-Installation handelt?

Ich habe eine vollständige Serverdateisuche durchgeführt und es gibt keine Datei mit dem Label .env-Datei

---

<div class="post-metadata">

**Author:** ![Scott](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Scott](https://forum.shopware.com/u/Scott)\
**Post date:** [23. Oktober 2021 um 17:43 UTC](https://forum.shopware.com/t/speicherort-der-sw6-konfigurations-pho-datei/91041/4 "2021-10-23T17:43:37Z")

</div>

There is a file in public/ folder labeled .env and fyes it has the database info.

I am confused as to why the official Shopware 6 documentation stated is in the config.php file in the root folder

* * *

Es gibt eine Datei im öffentlichen Ordner / Ordner mit der Bezeichnung .env und sie enthält die Datenbankinformationen.

Ich bin verwirrt, warum sich die angegebene offizielle Shopware 6-Dokumentation in der Datei config.php im Stammordner befindet

---

<div class="post-metadata">

**Author:** ![bfuchs](https://avatars.discourse-cdn.com/v4/letter/b/e274bd/32.png) [@bfuchs](https://forum.shopware.com/u/bfuchs)\
**Post date:** [25. Oktober 2021 um 13:57 UTC](https://forum.shopware.com/t/speicherort-der-sw6-konfigurations-pho-datei/91041/5 "2021-10-25T13:57:02Z")

</div>

Shopware 5 = config.php  
Shopware 6 = .env

In Shopware 6 werden die Datenbank Zugangsdaten in der .env Datei in folgender Zeile festgelegt:

* * *

In Shopware 6, the database credentials are set in the .env file in the following line:

```auto
DATABASE_URL=mysql://[DB_USERNAME]:[DB_PASSWORD]@[DB_SERVER]:[DB_PORT]/[DB_DATABASE_NAME]

```

Beispiel / Example:

```auto
DATABASE_URL=mysql://root:root@localhost:3306/shopware6

```

---

<div class="post-metadata">

**Author:** ![Scott](https://avatars.discourse-cdn.com/v4/letter/s/3e96dc/32.png) [@Scott](https://forum.shopware.com/u/Scott)\
**Post date:** [26. Oktober 2021 um 01:01 UTC](https://forum.shopware.com/t/speicherort-der-sw6-konfigurations-pho-datei/91041/6 "2021-10-26T01:01:20Z")

</div>

Thank you for the help
