当前位置:网站首页>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 #使配置立即生效
边栏推荐
猜你喜欢

Ctfhub web password weak password

“内窥镜第一股”二闯IPO,去年亏损5个亿,核心产品商业化仍存疑 | IPO速递

Configurable FFT system design based on risc-v SOC (1) Introduction
![[redis] sortedset type](/img/7f/f5f1aa603c8994b669d52a435fed7e.png)
[redis] sortedset type

Koa 快速入門

Ctfhub web SQL injection - integer injection

干货丨微服务架构是什么?有哪些优点和不足?

Understand flex layout in an article

How to become a senior digital IC Design Engineer (4-2) script: file read / write operation realized by Verilog HDL code

Koa 快速入门
随机推荐
Kubernetes: container resource requirements and constraints (constraints)
How to become a senior digital IC Design Engineer (4-5) script: file comparison operation implemented by shell script
Interviewer: with the for loop, why do you need foreach??
Target detection - ADAS practice
Pyinstaller打包pikepdf失败的问题排查
Qt基础教程:QStringList
温度转换 II
【Redis】SortedSet类型
三角函数计算
Sysbench Pressure Test Oracle (installation and use examples)
微信运动自动点赞
Project R & D, what are the free brain mapping tools that are easy to use
【网络通信学习笔记】Socket.IO的搭建和部署
高并发的理解与设计方案
Written examination questions, answers and analysis of Digital IC design and FPGA design (2) 2021 Huawei Hisilicon (Part 1)
Crawler exercise (IV) -- IP address problem
Which is the best billing method for okcc call center
【Redis】初识 Redis
How to become a senior digital IC Design Engineer (4-2) script: file read / write operation realized by Verilog HDL code
How to become a senior digital IC Design Engineer (6-7) digital IC Verification: debug skills