title: Laravel The stream or file "storage/laravel.log" could not be opened in append mode: failed to open stream: Permission denied in RHEL8
body: <p>I need help here. I installed Laravel in my RHEL 8 Server</p>
  <p>But I'm getting this error. I know this question already posted many times but I tried to follow the suggestion but no luck for me so far. I have no idea why.</p>
  <pre><code>The stream or file &quot;/var/www/html/vpa/storage/logs/laravel.log&quot; could not be opened in append mode: failed to open stream: Permission denied
  </code></pre>
  <p><a href="https://i.stack.imgur.com/1gVDe.png" rel="noreferrer"><img src="https://i.stack.imgur.com/1gVDe.png" alt="enter image description here" /></a>
  I tried to use this command to change the permission but it didn't work .</p>
  <pre><code>sudo chown -R $USER:www-data storage
  sudo chown -R $USER:www-data bootstrap/cache 
  sudo chmod -R 755 storage
  sudo chmod -R 755 bootstrap/cache
  
  sudo setenforce 0 
  sudo chcon -t httpd_sys_rw_content_t storage
  
  php artisan config:clear
  php artisan config:cache
  composer dump-autoload
  
  sudo systemctl restart httpd
  sudo reboot 
  </code></pre>
  <p>Nothing seems to work on my side . I don't know what else to do. Please help me</p>