Warning: file_put_contents(/var/www/var/cache/prod/annotations.map): Failed to open stream: Permission denied in /var/www/vendor/symfony/http-kernel/Kernel.php on line 298

Fatal error: Uncaught Symfony\Component\Cache\Exception\InvalidArgumentException: Cache file is not writable: "/var/www/var/cache/prod/doctrine/orm/default_metadata.php". in /var/www/vendor/symfony/cache/Adapter/PhpArrayAdapter.php:257 Stack trace: #0 /var/www/vendor/symfony/framework-bundle/CacheWarmer/AbstractPhpFileCacheWarmer.php(66): Symfony\Component\Cache\Adapter\PhpArrayAdapter->warmUp(Array) #1 /var/www/vendor/symfony/framework-bundle/CacheWarmer/AbstractPhpFileCacheWarmer.php(58): Symfony\Bundle\FrameworkBundle\CacheWarmer\AbstractPhpFileCacheWarmer->warmUpPhpArrayAdapter(Object(Symfony\Component\Cache\Adapter\PhpArrayAdapter), Array) #2 /var/www/vendor/symfony/http-kernel/CacheWarmer/CacheWarmerAggregate.php(99): Symfony\Bundle\FrameworkBundle\CacheWarmer\AbstractPhpFileCacheWarmer->warmUp('/var/www/var/ca...') #3 /var/www/vendor/symfony/http-kernel/Kernel.php(545): Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerAggregate->warmUp('/var/www/var/ca...') #4 /var/www/vendor/symfony/http-kernel/Kernel.php(759): Symfony\Component\HttpKernel\Kernel->initializeContainer() #5 /var/www/vendor/symfony/http-kernel/Kernel.php(185): Symfony\Component\HttpKernel\Kernel->preBoot() #6 /var/www/vendor/symfony/runtime/Runner/Symfony/HttpKernelRunner.php(35): Symfony\Component\HttpKernel\Kernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #7 /var/www/vendor/autoload_runtime.php(29): Symfony\Component\Runtime\Runner\Symfony\HttpKernelRunner->run() #8 /var/www/html/index.php(5): require_once('/var/www/vendor...') #9 {main} thrown in /var/www/vendor/symfony/cache/Adapter/PhpArrayAdapter.php on line 257