美文网首页
nginx php 开启 SELinux 提示 Forbbide

nginx php 开启 SELinux 提示 Forbbide

作者: 紅塵忘 | 来源:发表于2018-09-19 13:44 被阅读21次
    1. 查看 nginx error.log查看到 index.php premission dead
    2. 查看 SELinux log/var/log/aduit.log 提示 denied { open } scontext=system_u:system_r:httpd_t:s0 tcontext=system_u:object_r:unlabeled_t:s0 tclass=file
    3. 查看 nginx 默认文件 Security context ls -Z /usr/share/nginx/html显示
      root root system_u:object_r:httpd_sys_content_t:s0 index.html
    4. 修改对应权限chcon -R -u system_u -t httpd_sys_content_t filePath

    相关文章

      网友评论

          本文标题:nginx php 开启 SELinux 提示 Forbbide

          本文链接:https://www.haomeiwen.com/subject/dshinftx.html