部署Apache环境:目录权限设置 777,CMS 仍然提示 无法写入目录。
然后偶然发现一个提示信息:
“SELinux is preventing /usr/sbin/httpd from write access on the directory view”,参考该文章得知是Linux平台下的httpd一个bug。
执行命令:
ls -LZ 查看
发现 “httpd_sys_content_t” 字段
SELinux is preventing /usr/sbin/httpd from write access on the directory view

修复bug:
chcon -R -t httpd_sys_rw_content_t ./*

然后再次执行 ls -LZ
字段变为:
“httpd_sys_rw_content_t” 即可。

相关文章:

  • 2021-12-05
  • 2021-03-29
  • 2022-12-23
  • 2021-07-17
  • 2021-10-28
  • 2021-05-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-02
  • 2021-10-14
  • 2021-12-11
  • 2021-09-25
  • 2021-11-14
相关资源
相似解决方案