ps查看nginx資料:
_www 508 0.0 0.0 2461508 1320 ?? S 10:46下午 0:00.00 nginx: worker process
_www 507 0.0 0.0 2452292 952 ?? S 10:46下午 0:00.80 nginx: worker process
root 506 0.0 0.0 2442864 348 ?? Ss 10:46下午 0:00.00 nginx: master process nginx
我的文件目錄為:/Users/Abner/Documents/work/code/ququ/ms
nginx,php-fpm配置好後,瀏覽器訪問:File not found.
查看日誌:
2014/07/01 23:42:45 [crit] 508#0: *9 stat() "/Users/Abner/Documents/work/code/ququ/ms/" failed (13: Permission denied), client: 127.0.0.1, server: a.ququ.com, request: "GET / HTTP/1.1", host: "a.ququ.com"
2014/07/01 23:42:45 [error] 508#0: *9 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 127.0.0.1, server: a.ququ.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "a.ququ.com"
查了目錄許可權:704172 drwxr-xr-x 9 Abner staff 306 6 30 14:54 ms
755,按道理說是可以讀資料啊。
但是怎麼都是File not found,還請各位大神指導,多謝
回複內容:
ps查看nginx資料:
_www 508 0.0 0.0 2461508 1320 ?? S 10:46下午 0:00.00 nginx: worker process
_www 507 0.0 0.0 2452292 952 ?? S 10:46下午 0:00.80 nginx: worker process
root 506 0.0 0.0 2442864 348 ?? Ss 10:46下午 0:00.00 nginx: master process nginx
我的文件目錄為:/Users/Abner/Documents/work/code/ququ/ms
nginx,php-fpm配置好後,瀏覽器訪問:File not found.
查看日誌:
2014/07/01 23:42:45 [crit] 508#0: *9 stat() "/Users/Abner/Documents/work/code/ququ/ms/" failed (13: Permission denied), client: 127.0.0.1, server: a.ququ.com, request: "GET / HTTP/1.1", host: "a.ququ.com"
2014/07/01 23:42:45 [error] 508#0: *9 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 127.0.0.1, server: a.ququ.com, request: "GET / HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "a.ququ.com"
查了目錄許可權:704172 drwxr-xr-x 9 Abner staff 306 6 30 14:54 ms
755,按道理說是可以讀資料啊。
但是怎麼都是File not found,還請各位大神指導,多謝
/Users/Abner/Documents/work/code/ququ/ms
這些路徑得逐層查看,看看是不是每層都有許可權,不要只看最後一個目錄