Directory permissions are still not writable after changing them under centos

王林
Release: 2020-03-27 14:24:48
Original
3448 people have browsed it

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"
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template