Home > Article > Operation and Maintenance > Directory permissions are still not writable after changing them under centos
Problem:
When setting up an environment on CentOS, no matter how you modify the user permissions to 777 or 755 or change the user to whom the file belongs, the Laravel framework always reports an error. The error message is as follows:
"The stream or file "/var/www/laravel56/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied"
Cause:
It is caused by opening selinux.
(Recommended tutorial: centos tutorial)
Solution:
Edit the /etc/selinux/config file and change the SELINUX item to: SELINUX =disabled.
Related video tutorial recommendations: linux video tutorial
The above is the detailed content of Directory permissions are still not writable after changing them under centos. For more information, please follow other related articles on the PHP Chinese website!