title: laravel centOS 8 "log file could not be opened in append mode: failed to open stream: Permission denied”
body: <p>Generally in ubuntu changing ownership to <code>www-data</code> and <code>775</code> permission solve this problem. But in centos 8 this seems not enough. What I did is-</p>
  <ol>
  <li>Set SELinux in permissive mode</li>
  <li>Allow to write in the laravel storage folder - chcon -R -t httpd_sys_rw_content_t storage</li>
  <li>sudo chown -R nginx:nginx /path/to/your/laravel/root/directory</li>
  <li>chmod -R 775 storage/</li>
  <li>Reboot the system</li>
  </ol>
  <p>Nothing is working. What to do solve this problem?</p>