I\'ve cloned a laravel repo to my CentOS 7 box. When I try to run it, I get a 500 error with nothing displayed.
So I check out /var/log/httpd/error_log
selinuxI found this answer, which solved my problem.
Prove this is the problem by turning off
selinuxwith the commandsetenforce 0This should allow writing, but you've turned off added security server-wide. That's bad. Turn SELinux back
setenforce 1Then finally use SELinux to allow writing of the file by using this command
chcon -R -t httpd_sys_rw_content_t storageAnd you're off!