1
votes

PHP Fatal error in laravel 5.1:

Uncaught exception 'UnexpectedValueException' with message 'The stream or file "/var/www/html/SocialNet/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied' in /var/www/html/SocialNet/bootstrap/cache/compiled.php:13090\nStack trace:\n#0 /var/www/html/SocialNet/bootstrap/cache/compiled.php(13030)

1
It happens everyday and every minute alsoSekar
Its telling you that it could not open the log file. Once oyu have sorted that out, it will tell what is actually wrong.Rohit Gupta
Yeah chmod 777 filename and chown apache:apache filenameSekar
sudo chmod -R 777 storageArmen Markossyan
change it but i again get that issue @maythamSekar

1 Answers

1
votes

This is a log file permissions problem.

Some of the possible solutions:

  • give write permissions to that file
  • change the log file path to another you can write to
  • change the log output driver
  • disable logging

How to configure log

How to deal with log file path and permissions