FastCGI sent in stderr: "Unable to open primary script:index.php (Operation not permitted) 问题解决

出现这类问题时,需要检查一下nginx定位的网站根目录中,是否有user.ini 文件

至于user.ini 文件是什么 https://www.php.net/manual/zh/configuration.file.per-user.php#111834 中有介绍

这类文件仅会被cgi/fast cgi/sapi处理,次文件会使得pecl 的htscanner扩展作废,所以路径没填写正确会产生这样的异常。如果使用apache,则用.hataccess 有同样的效果

posted @ 2020-04-13 11:52  to_simple  阅读(5397)  评论(0编辑  收藏  举报