laravel he stream or file "..laravel-2019-02-14.log" could not be opened: failed to open stream: Permission denied

错误:The stream or file "/var/www/jianshu/storage/logs/laravel-2019-02-14.log" could not be opened: failed to open stream: Permission denied
解决:

After installing Laravel, the file needs to be configured to both read and write permissions: storage directory and bootstrap / cache directory
off Selinux, restart the server
to modify / etc / selinux / config file
SELINUX = enforcing to SELINUX = disabled

My solution is to find storage / logs delete the log files do not belong to www user, this may be your command in use artisan generated in the process.

Guess you like

Origin www.cnblogs.com/AlexanderZhao/p/11231109.html