When I change the storage directory to 777, the page can be displayed normally, or the log under logs can be accessed normally after deleting it. However, I have set the storage directory to 777 a long time ago, and every time I set it like this, it will take a while. The time cannot be displayed normally again
PHP中文网2017-05-16 13:01:25
Possible reasons
I have encountered a situation where the owner is between apache and root users. There will be such a situation. The user apache specified by php-fpm uses the root user when granting permissions. Especially when using the daily mode of laravel logs. The new file does not have 777 permissions.
Check
Check whether the user specified by php-fpm has all permissions for storage.
Solution
Change the user group where the folder is located.