Laravel 5.4 and Centos 7: storage / logs / laravel.log (Permission denied)

0

I'm using PHP 7.1 on Apache and I just installed a Laravel 5.4 project on Centos 7, and I get the following error:

My user is "root", the permissions of my directory are the following:

I have executed the following commands:

sudo chmod -R 644 storage
sudo chmod -R 755 storage

In both cases the same thing happens. As an additional fact, I must mention that during the installation I could not install the ext-zip package of php 7.1, I did not find it, is that it?

    
asked by Ricky 11.12.2017 в 18:28
source

1 answer

0

For everyone who needs it: The problem was caused by something called SELINUX which must be disabled with the following command:

sudo setenforce 0

According to this link this error is caused by different users trying to write about the same file log with the storage / log directory with different permissions.

    
answered by 11.12.2017 в 18:57