我發現錯誤,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很好地工作。