当我尝试在浏览器中打开 index.php 时,我看到了错误:
No input file specified.
在错误日志中:
2013/11/04 22:40:07 [error] 3435#0: *4 FastCGI sent in stderr: "Unable to open primary script: /var/www/index.php (Operation not allowed)" 同时读取响应标头上游,客户端:10.0.2.2,服务器:localhost,请求:“GET / HTTP/1.1”,上游:“fastcgi://127.0.0.1:9000”,主机:“localhost”
服务器的配置:
- CentOS 6.4
- PHP 5.4.17(从源代码安装)
- Nginx 1.0.15
PHP-FPM 从用户 nginx 工作。
$ ps aux | grep fpm
root 3460 0.0 0.7 29524 3428 ? Ss 22:48 0:00 php-fpm: master process (/usr/etc/php-fpm.conf)
nginx 3462 0.0 0.5 29524 2732 ? S 22:48 0:00 php-fpm: pool www
nginx 3463 0.0 0.5 29524 2732 ? S 22:48 0:00 php-fpm: pool www
nginx 3464 0.0 0.7 29524 3592 ? S 22:48 0:00 php-fpm: pool www
nginx 3465 0.0 0.5 29524 2732 ? S 22:48 0:00 php-fpm: pool www
nginx 3466 0.0 0.5 29524 2732 ? S 22:48 0:00 php-fpm: pool www
vagrant 3468 0.0 0.1 5532 720 pts/0 D+ 22:48 0:00 grep fpm
$ ls -la /var/www
drwxr-xr-x 2 nginx nginx 4096 Ноя 4 22:34 .
drwxr-xr-x. 19 root root 4096 Ноя 4 22:31 ..
-rw-r--r-- 1 nginx nginx 17 Ноя 4 22:34 index.php
打开 catch_workers_output 没有帮助