php5-fpm + nginx + drupal7:不断发送给我index.php下载

在这里拉我的头发不知道为什么:

我的虚拟主机在/ etc / nginx / sites-available /

server { listen 80 default; location / { root /var/www; index index.php; } location ~* \.php$ { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /var/www$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_script_name; include fastcgi_params; } } 

nginx.conf

 user www; worker_processes 4; pid /var/run/nginx.pid; events { worker_connections 768; multi_accept on; } http { sendfile on; tcp_nopush on; tcp_nodelay on; keepalive_timeout 65; types_hash_max_size 2048; server_tokens off; include /etc/nginx/mime.types; default_type application/octet-stream; access_log /var/log/nginx/access.log; error_log /var/log/nginx/error.log; gzip on; gzip_disable "msie6"; include /etc/nginx/conf.d/*.conf; include /etc/nginx/sites-enabled/*; } 

安装软件包

  • PHP5-CGI
  • PHP5-FPM
  • PHP5-MySQL的
  • nginx的

在新鲜干净的安装Ubuntu 11.04。

curl'ing IP给我的PHP文件“不解释”

build议您最大限度地提高所有日志的详细程度,并粘贴与“未解释”请求相关联的所有日志条目。

另外,我刚刚在昨天设置了一个服务器,diff组件,但同样的非解释结果 – 原来我只是没有重新启动所有适当的服务,拿起parsing的PHP引擎。