Sekar
Sekar

Reputation: 11

Permission denied issue in Laravel 5.1

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)

Upvotes: 1

Views: 1544

Answers (1)

alariva
alariva

Reputation: 2139

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

Upvotes: 1

Related Questions