0
点赞
收藏
分享

微信扫一扫

owncloud 部署出现nginx+php-fpm出现file not found错误

花明 2024-11-08 阅读 5

location ~ \.php$ {
            root           html;
            fastcgi_pass   127.0.0.1:9000;
            fastcgi_index  index.php;
            fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
            include        fastcgi_params;
        }

owncloud 部署出现nginx+php-fpm出现file not found错误_Nginx

owncloud 部署出现nginx+php-fpm出现file not found错误_Nginx_02

owncloud 部署出现nginx+php-fpm出现file not found错误_html_03

如何设置 SELinux 策略以允许 Nginx 写入目录?

临时设置 SELinux 为宽容模式


  1. 可以临时将 SELinux 设置为宽容模式,以观察在没有严格的 SELinux 限制时 Nginx 是否能够正常写入。
  • 使用 setenforce 0 将 SELinux 设置为宽容模式。
  • 在宽容模式下,SELinux 会记录违反安全策略的行为,但不会阻止它们。这可以帮助确定是否是 SELinux 导致了 Nginx 的写入问题。
  • 注意,这只是一个临时的调试方法,不要在生产环境中长时间保持 SELinux 处于宽容模式。


举报

相关推荐

0 条评论