Y
Y
yellow_pus2022-03-17 00:03:03
PHP
yellow_pus, 2022-03-17 00:03:03

How to change permissions for storage?

I have a laravel project that is wrapped in docker, when I try to run docker-compose up -dAND 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 via
php 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

1 answer(s)
Y
yellow_pus, 2022-03-17
@yellow_pus

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 question

Ask a Question

731 491 924 answers to any question