Permissions Issue with Laravel on CentOS

Permissions Issue with Laravel on CentOS

X
  1. This should allow writing, but you’ve turned off added security server-wide. That’s bad. Turn SELinux back
  2. Then finally use SELinux to allow writing of the file by using this command
     
    chcon -R -t httpd_sys_rw_content_t storage
    sudo chown-R $USER:apache storage
    sudo chown-R $USER:apache bootstrap/cache
    chmod-R775storage
    chmod-R775bootstrap/cache