原文:nginx FastCGI錯誤Primary script unknown解決辦法

在centos上成功編譯安裝nginx . php . 並成功啟動nginx和php fpm后,訪問php提示 File not found. ,同時在錯誤日志中看到: 復制代碼代碼如下: : : error : FastCGI sent in stderr: Primary script unknown while reading response header from upstream, ...

2019-04-30 23:55 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