nginx FastCGI错误Primary script unknown解决办法

在centos上成功编译安装nginx 1.4、php 5.4并成功启动nginx和php-fpm后,访问php提示"File not found.",同时在错误日志中看到: 复制代码代码如下: 2013/10/22 20:05:49 ...

Wed May 01 07:55:00 CST 2019 0 467
解决nginx FastCGI sent in stderr: “Primary script unknown

今天重启了mac,突然发现本地的 lnmp 服务不能用了,什么请求都返回了: FastCGI sent in stderr: “Primary script unknown” 这个就很尴尬了,可是我啥也没动啊,但是没有办法,出问题了就得查,google了一下,出这个问题一般有两个 ...

Fri Sep 08 03:41:00 CST 2017 0 15306
NginxPrimary script unknown错误解决

fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 改成红色部分变量 root /usr/local/nginx/html; 把root节点提前到location上面 ...

Mon Sep 10 04:55:00 CST 2018 0 795
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM