# SW 6 Config.php file

**URL:** <https://forum.shopware.com/t/sw-6-config-php-file/91040>\
**Category:** Shopware 6 (English)\
**Created:** [22. Oktober 2021 um 10:44 UTC](https://forum.shopware.com/t/sw-6-config-php-file/91040 "2021-10-22T10:44:06Z")\
**Posts on this page:** 4\
**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:44 UTC](https://forum.shopware.com/t/sw-6-config-php-file/91040/1 "2021-10-22T10:44:06Z")

</div>

Where is the SW6 config.php file stored the file that contains the database information.

SW6 documentation say it in the Root directory, its not there. I did a full files search and came up with 4 result non of which contain the site Database information, username, password etc.

here are the files found

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

---

<div class="post-metadata">

**Author:** ![magnus](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/magnus/32/13222_2.png) [@magnus](https://forum.shopware.com/u/magnus)\
**Post date:** [24. Oktober 2021 um 08:15 UTC](https://forum.shopware.com/t/sw-6-config-php-file/91040/2 "2021-10-24T08:15:46Z")

</div>

@Scott , With an installation in Development mode (cloned from Github) I have the settings for the database in a file called „.psh.yaml.override“.

Not sure it is the same in the production version (new to Shopware!).

---

<div class="post-metadata">

**Author:** ![NextMike](https://avatars.discourse-cdn.com/v4/letter/n/838e76/32.png) [@NextMike](https://forum.shopware.com/u/NextMike)\
**Post date:** [24. Oktober 2021 um 12:05 UTC](https://forum.shopware.com/t/sw-6-config-php-file/91040/3 "2021-10-24T12:05:54Z")

</div>

it’s in the .env file

---

<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:** [24. Oktober 2021 um 12:21 UTC](https://forum.shopware.com/t/sw-6-config-php-file/91040/4 "2021-10-24T12:21:37Z")

</div>

I think he solved the problem in the meantime. 😉 [Speicherort der SW6-Konfigurations-PHO-Datei](https://forum.shopware.com/t/speicherort-der-sw6-konfigurations-pho-datei/91041)
