报这个错误,是因为nginx版本的 fastcgi.conf 文件不见了,变成了 fastcgi_params
查看官方文档示例
server {
listen 80;
server_name example.org www.example.org;
root /data/www;
location / {
index index.html index.php;
}
location ~* \.(gif|jpg|png)$ {
expires 30d;
}
location ~ \.php$ {
fastcgi_pass localhost:9000;
fastcgi_param SCRIPT_FILENAME
$document_root$fastcgi_script_name;
include fastcgi_params;
}
}
Original: https://www.cnblogs.com/tdalcn/p/14272990.html
Author: 陈达辉
Title: nginx: [emerg] open() “/etc/nginx/fastcgi.conf” failed
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/543565/
转载文章受原作者版权保护。转载请注明原作者出处!