Laravel 5 permission denied when writing in log file

前端 未结 4 671
無奈伤痛
無奈伤痛 2020-12-05 08:49

I have Ubuntu and Laravel 5 framework and I see the white screen in the browser.
When I change storage/logs directory permissions it helps, but I have to do

4条回答
  •  情深已故
    2020-12-05 09:43

    I got the same error. By using the following command I could solve it. For some reason, it is not about the log file.

    sudo chgrp -R www-data storage bootstrap/cache
    sudo chmod -R ug+rwx storage bootstrap/cache
    

提交回复
热议问题