Home  >  Article  >  Operation and Maintenance  >  Directory permissions are still not writable after changing them under centos

Directory permissions are still not writable after changing them under centos

王林
王林Original
2020-03-27 14:24:483445browse

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.

Directory permissions are still not writable after changing them under centos

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn