根據網上資料配置:php
location ~ \.php$ { #include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; }
死活提示: file not foundbash
error.log 日誌:日誌
[error] 27515#0: *35 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream,
個人root 路徑配置在/home/xxx/路徑下, 用戶組, 用戶權限也是對的,可是一直提示 File not found。blog
最後把路徑改到 /usr/local/下面, 就ok了!ip