title: The stream or file "/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied
body: <p>When I navigate to Laravel app on my CentOS server, it gives <strong>HTTP ERROR 500</strong></p>
  
  <p><a href="https://i.stack.imgur.com/u6vGO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u6vGO.png" alt="enter image description here"></a></p>
  
  <p>So, when I checked my server error log, it says this error</p>
  
  <pre><code>PHP Fatal error:  Uncaught UnexpectedValueException: The stream or file "/var/www/html/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied in /var/www/html/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:107\nStack trace:\n#0 
  </code></pre>
  
  <p>I have already set 777 permission to storage and bootstrap directories. </p>
  
  <p>This very Laravel application runs fine on another server. So, what's the big deal here ?</p>