Rumah > pembangunan bahagian belakang > tutorial php > php+nginx配置权限问题(13: Permission denied)

php+nginx配置权限问题(13: Permission denied)

WBOY
Lepaskan: 2016-06-06 20:44:49
asal
2067 orang telah melayarinya

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
这些路径得逐层查看,看看是不是每层都有权限,不要只看最后一个目录

Label berkaitan:
sumber:php.cn
Kenyataan Laman Web ini
Kandungan artikel ini disumbangkan secara sukarela oleh netizen, dan hak cipta adalah milik pengarang asal. Laman web ini tidak memikul tanggungjawab undang-undang yang sepadan. Jika anda menemui sebarang kandungan yang disyaki plagiarisme atau pelanggaran, sila hubungi admin@php.cn
Tutorial Popular
Lagi>
Muat turun terkini
Lagi>
kesan web
Kod sumber laman web
Bahan laman web
Templat hujung hadapan