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

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 :slight_smile:

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/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 :smiley:

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?

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

Vermutlich das gleiche Problem: