title: Lumen: failed to open stream: Permission denied in .../vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:107
body: <p>My OS is ubuntu 16.04 and I am running Lumen 5.5.
  When I try to run the app in the browser I get an error 500:<a href="https://i.stack.imgur.com/cd9n3.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cd9n3.jpg" alt="enter image description here"></a> </p>
  
  <p>and I am getting that error in my /var/log/nginx:</p>
  
  <pre><code>2017/10/09 06:51:26 [error] 1063#1063: *132 FastCGI sent in stderr: 
  "PHP message: PHP Fatal error:  Uncaught UnexpectedValueException: 
   The stream or file "/home/ila/vhosts/dref_api.com/storage/logs/lumen.log"
   could not be opened: failed to open stream: Permission denied in 
   home/ila/vhosts/dref_api.com/
   vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:107
  </code></pre>
  
  <p>Permission in <code>storage/</code> is :<a href="https://i.stack.imgur.com/gQEzo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gQEzo.png" alt="enter image description here"></a></p>
  
  <p>Permissions in <code>vendor/ and all monolog/ sub files</code> are :<a href="https://i.stack.imgur.com/pYg8j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pYg8j.png" alt="enter image description here"></a></p>
  
  <p>So, I think could apply <code>sudo chmod -R guo+w /vendor</code> but I dont know if it would works or even if it is a good practice.</p>
  
  <p>How are you solving this issue?</p>