Laravel 5: laravel.log could not be opened: Permission Denied

前端 未结 7 1647
后悔当初
后悔当初 2021-01-31 00:19

To stop you from the start, there is NO permission issue. /storage is recursively chmodded 777 and whole project folder is chowned by apache:apache

I even r

7条回答
  •  不知归路
    2021-01-31 00:41

    This worked for me, Laravel 5.4 and above

    $ sudo chmod -R 755 storage/
    
    $ sudo chown -R www-data storage/
    
    $ sudo chgrp -R www-data storage/
    
    $ php artisan cache:clear
    
    $ php artisan config:cache
    
    $ composer dumpautoload
    

    Not all steps necessary.

提交回复
热议问题