# Shopware 6 Fatal error: Uncaught RuntimeException: Unable to create the "cache" directory

**URL:** <https://forum.shopware.com/t/shopware-6-fatal-error-uncaught-runtimeexception-unable-to-create-the-cache-directory/93423>\
**Category:** Installation / Einstieg\
**Created:** [13. März 2022 um 19:23 UTC](https://forum.shopware.com/t/shopware-6-fatal-error-uncaught-runtimeexception-unable-to-create-the-cache-directory/93423 "2022-03-13T19:23:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![igorsweb](https://avatars.discourse-cdn.com/v4/letter/i/b38774/32.png) [@igorsweb](https://forum.shopware.com/u/igorsweb)\
**Post date:** [13. März 2022 um 19:23 UTC](https://forum.shopware.com/t/shopware-6-fatal-error-uncaught-runtimeexception-unable-to-create-the-cache-directory/93423/1 "2022-03-13T19:23:58Z")

</div>

Hallo zusammen, erst einmal möchte ich mich kurz vorstellen.

Mein Name ist Igor und ich interessiere mich generell für CMS.

Aktuell versuche ich Shopware 6 zu installieren aber habe auch schon mein ersten Error 🙂

**Zunächst erst mal mein Setup:**

Ich nutze ein Dedicate Server mit dem ISP Manager Lite 6  
PHP Version 7.4.28

- Memory\_limit: 1024
- Post\_max\_size: 512  
Apache  
Shopware 6 aus dem Download bereich

**und bekomme beim aufrufen der /public datei folgenden error:**

> **Fatal error** : Uncaught RuntimeException: Unable to create the „cache“ directory (/var/www/customer98273/data/www/zensiert.de/var/cache/prod\_hc3a251d435f4417147f16150d2e7ac5b). in /var/www/customer98273/data/www/[zensiert.de](http://zensiert.de)/vendor/symfony/http-kernel/Kernel.php:640 Stack trace: #0 /var/www/customer98273/data/www/zensiert.de/vendor/symfony/http-kernel/Kernel.php(547): Symfony\Component\HttpKernel\Kernel-\>buildContainer() #1 /var/www/customer98273/data/www/zensiert.de/vendor/shopware/core/Kernel.php(194): Symfony\Component\HttpKernel\Kernel-\>initializeContainer() #2 /var/www/customer98273/data/www/zensiert.de/vendor/shopware/recovery/Install/src/app.php(45): Shopware\Core\Kernel-\>boot() #3 /var/www/customer98273/data/www/zensiert.de/vendor/shopware/recovery/Install/index.php(74): getApplication(Object(Shopware\Core\Kernel)) #4 /var/www/customer98273/data/www/zensiert.de/public/recovery/install/index.php(6): require\_once(‚/var/www/custom…‘) #5 {main} thrown in **/var/www/customer98273/data/www/zensiert.de/vendor/symfony/http-kernel/Kernel.php** on line **640**

**Was hab ich alles versucht?**

1. /var/cache und log ordner 777 rechte zugeteilt
2. Google genutzt aber konnte mein problem nicht lösen
3. Google
4. Google 😃

Ansonsten weiss ich nun nicht was ich sonst noch großartig machen könnte. Ich hab gelesen das man in der config die httpCache ändern kann aber auch widerrum gelesen das dieser fix bereits bei Shopware 6 integriert ist. Zudem konnte ich garkeine config.php finden gilt dann wohl eher nur für die die es bereits installiert haben.

**Wenn ich nur die IP aufrufen ohne /public ranzuhängen kommt**

> # Shopware Root Directory
> 
> **You should not be able to see this page.**  
> If yes you are missing some important server configuration. For security reasons, all accessible files are located in the /public directory of your Shopware installation.
> 
> Please configure your web server to root your domain to the /public directory of this installation.

Woran kann das liegen?

---

<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:** [13. März 2022 um 21:59 UTC](https://forum.shopware.com/t/shopware-6-fatal-error-uncaught-runtimeexception-unable-to-create-the-cache-directory/93423/2 "2022-03-13T21:59:15Z")

</div>

Root Directory sollte /public und nicht /. Dann kannst du die zweite Fehlermeldung erst gar nicht produzieren.

Erster Fehler scheint an den fehlenden Schreibrechten zu liegen. Sicher, dass du dem richtigen Benutzer (Linux Benutzer) die richtigen Rechte gegeben hast?

config.php ist Shopware 5. .env ist Shopware 6

---

<div class="post-metadata">

**Author:** ![sven-sw](https://avatars.discourse-cdn.com/v4/letter/s/8491ac/32.png) [@sven-sw](https://forum.shopware.com/u/sven-sw)\
**Post date:** [14. März 2022 um 12:53 UTC](https://forum.shopware.com/t/shopware-6-fatal-error-uncaught-runtimeexception-unable-to-create-the-cache-directory/93423/3 "2022-03-14T12:53:32Z")

</div>

Vermutlich das gleiche Problem:

> [@Shopware 6 - Update Problem Shopware 6.4.9.0 - Unsere Website befindet sich gerade in der Wartung](https://forum.shopware.com/t/shopware-6-update-problem-unsere-website-befindet-sich-gerade-in-der-wartung/93437/6):
>
> Beim nächsten Update folgende Meldung: Deprecated: Return type of Pimple\Container::offsetExists($id) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/html/vendor/shopware/recovery/Common/vendor/pimple/pimple/src/Pimple/Container.php on line 133 Deprecated: Return type of Pimple\Container::offsetGet($id) should either be compatible with ArrayAccess::offsetGet(…
