V
V
Vadim2017-08-01 13:13:23
symfony
Vadim, 2017-08-01 13:13:23

Symfony how to clear the cache so that www-data has rights to it and vice versa?

Good afternoon.
I clear the cache with this command: bin/console cache:clear -e prod
With this command, I understand that the cache is recreated - "warmed up". But after that www-data doesn't have access to it and everything breaks.
On the other hand, if the cache is created while the application is running, then I can no longer clear it under my user.
How do you get out of such a situation? And then I just delete the folders under the root now.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
BoShurik, 2017-08-01
@kylt_lichnosti

https://symfony.com/doc/current/setup/file_permiss...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question