我发现错误,dotpalant2文档中,它说在那里
include fastcgi.conf;
但在我们的nginx文件夹中更改
/etc/nginx/sites-enabled/dotplant2-host
如下
server {
listen 80;
# NOTE: Replace with your path here
root /home/user/dotplant2/application/web;
index index.php;
# NOTE: Replace with your hostname
server_name dotplant2.dev;
location/{
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi.conf;
}
location ~ /\.ht {
deny all;
}
}
没有fastcgi.conf
所以我们必须改变,因为
include fastcgi_params;
然后所有人都为Ubuntu 14.04很好地工作。