Answer the question
In order to leave comments, you need to log in
How to change permissions for storage?
I have a laravel project that is wrapped in docker, when I try to run docker-compose up -d
AND connect on localhost to localhost, a laravel error occurs
There is no existing directory at "path/to/my/project/storage/logs" and it could not be created: Permission denied
Usually, this error was solved by the team sudo chmod -R 777 storage/
. But now, this does not solve the problem at all, even inside the php-fpm container, by clearing the cache viaphp artisan cache:clear php artisan route:clear php artosan config:cache php artisan optimize
I don't even know what to try in this situation
Answer the question
In order to leave comments, you need to log in
I am sorry to bother you! The error was in the generation of APP_KEY, it had to be generated in the project itself, after that, inside the php-fpm container, give permissions (777) to the full path to storage. PS Thanks for the help sergey kuzmin :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question