当前位置:网站首页>thinkphp5.1 runtime文件改成777权限了, 还是无法写入
thinkphp5.1 runtime文件改成777权限了, 还是无法写入
2022-06-29 02:23:00 【hello php】
runtime文件已经改成了777了还是无法写入

可能的解决方法:
(1) 修改项目的所属用户所属组, 如果服务器是apache,可以修改如下
chown -R apache:apache runtime(2) 如果还是不行, 请查看selinux是否开启
查看selinux状态
[[email protected] test]# sestatus
SELinux status: enabled
SELinuxfs mount: /selinux
Current mode: enforcing
Mode from config file: enforcing
Policy version: 24
Policy from config file: targeted
看selinux是否关闭、开启
[[email protected] test]# getenforce
Enforcing
临时关闭selinux:(#0代表permissive,1代表enforcing;也可直接用permissive和enforcing)
[[email protected] test]# setenforce 0
永久关闭selinux
#vi /etc/selinux/config
#SELINUX=enforcing #注释掉
#SELINUXTYPE=targeted #注释掉
SELINUX=disabled #增加
:wq! #保存退出
#setenforce 0 #使配置立即生效
边栏推荐
猜你喜欢

【Redis】Key的层级结构
![[high concurrency, high performance and high availability of massive data MySQL practice-10] - Implementation of mvcc in InnoDB](/img/dc/a30ccd9943e668aef8c874980a4975.jpg)
[high concurrency, high performance and high availability of massive data MySQL practice-10] - Implementation of mvcc in InnoDB

OpenResty 使用介绍

Configurable FFT system design based on risc-v SOC (1) Introduction

對補wasm環境的一些測試

Download and installation of MySQL
![[redis] sortedset type](/img/7f/f5f1aa603c8994b669d52a435fed7e.png)
[redis] sortedset type

如何用项目甘特图,做好项目汇报
![[redis] get to know redis for the first time](/img/02/3c6a7f6ea8c563386a4cd458024728.png)
[redis] get to know redis for the first time

【Redis】初识 Redis
随机推荐
CTFHub-Web-SQL注入-整数型注入
[redis] key hierarchy
Junior final exam
Wechat campaign auto like
Temperature conversion II
Use code binding DataGridView control to display tables in program interface
What is the dry goods microservice architecture? What are the advantages and disadvantages?
字符串属性练习
Why should the pointer be null after delete
哪个证券公司最大最安全 哪家券商服务好
[redis] set type
Ctfhub web password default password
SystemVerilog structure (I)
Kubernetes: container resource requirements and constraints (constraints)
Configurable FFT system design based on risc-v SOC (1) Introduction
Eliminate the hover effect when the button is disabled
What is the Valentine's Day gift given by the operator to the product?
OpenResty 使用介绍
如何成为一名高级数字 IC 设计工程师(6-5)数字 IC 验证篇:覆盖率收集
请问etf基金是否靠谱,安全吗