原文:CentOS 7 + Nginx 1.6.2 + PHP 5.4.45 FastCGI错误Primary script unknown网页显示File not found的解决办法

话接上文,主系统Windows , VirtualBox虚拟机安装CentOS , LNMP环境: Nginx . . PHP . . 打开index.html没问题显示良好: 但是我在html下面放了info.php的测试页,却显示File not found. 看了日志 var log nginx error.log才发现写了这么一段: error : FastCGI sent in std ...

2016-09-03 13:38 0 3161 推荐指数:

查看详情

nginx FastCGI错误Primary script unknown解决办法

centos上成功编译安装nginx 1.4、php 5.4并成功启动nginxphp-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-2026 CODEPRJ.COM