title: laravel - The stream or file "/storage/logs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied
body: <p>My application is being deployed to AWS Lightsail(LAMP) and when I try to run <code>artisan migrate</code> it says:</p>
  <pre><code>The stream or file &quot;/opt/bitnami/projects/app-name/storage/logs/laravel.log&quot; could not be opened in append mode: failed to o
  pen stream: Permission denied
  </code></pre>
  <p>What I have tried so far is to allow access to storage via:</p>
  <pre><code>sudo chmod -R 775 storage
  </code></pre>
  <p>Also, I can only access my home page if I use <code>sudo chmod -R 777 storage</code> but not <code>sudo chmod -R 775 storage</code>. I am not sure why.</p>
  <p>but it is still giving me the error. What seems to be this issue?</p>