Ларавел logs помилка прав доступу до файлу

Published December 15, 2020 • 1 min read

Never set a directory to 777. you should change directory ownership. so set your current user that you are logged in with as owner and the webserver user (www-data, apache, ...) as the group.

Для того щоб виправити достатньо запустити цы команди на вашому лінукс сервері:

sudo chown -R $USER:www-data storage

sudo chown -R $USER:www-data bootstrap/cache

then to set directory permission try this:

chmod -R 775 storage

chmod -R 775 bootstrap/cache


Подпишись на рассылку