0
votes

When I try do deploy my website on the server I have this error :

Fatal error: Uncaught exception 'RuntimeException' with message 'Unable to write in the cache directory (/home/e120223/public_html/ReclyZone/app/cache/prod) ' in /home/e120223/public_html/ReclyZone/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php:597 Stack trace: #0 /home/e120223/public_html/ReclyZone/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(510): Symfony\Component\HttpKernel\Kernel->buildContainer() #1 /home/e120223/public_html/ReclyZone/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(133): Symfony\Component\HttpKernel\Kernel->initializeContainer() #2 /home/e120223/public_html/ReclyZone/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php(182): Symfony\Component\HttpKernel\Kernel->boot() #3 /home/e120223/public_html/ReclyZone/web/app.php(16): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #4 {main} thrown in /home/e120223/public_html/ReclyZone/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/Kernel.php on line 597

I have already clear cache but nothing works, do you have an idea ?

2
Make sure the permissions are fine in the cache directory, later use cache:clear --no-warmup & cache-warmup to avoid random errors.yceruto
@Cerad and for windows ?Pierre Colart
Your production server is running windows? Yikes. All I can suggest is to copy/paste "Unable to write in the cache directory windows" into a search bar and see what comes up.Cerad

2 Answers

0
votes

chmod -R 777on the cache directory to give permission to read AND write

-1
votes

The problem is that you don't have permission to write in that cache directory.
I would change the default cache directory to a writable folder.

See the official documentation http://symfony.com/doc/current/configuration/override_dir_structure.html#override-cache-dir