nginx: как fastcgi поймёт что нужно запустить интерпретатор PHP?
nginx, настройка такая:
# pass the PHP scripts to FastCGI server
#
location ~ \.php$ {
fastcgi_index index.php;
#fastcgi_pass localhost:999;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
при попытке открыть .php-файл возникает ошибка:
*1 upstream closed prematurely FastCGI stdout while reading response header from upstream, client: 92.126.66.16, server: hostarium.com, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/fcgiwrap.socket:", host: "hostarium.com:444"
это естественно, ведь fastcgi-демон не знает что надо вызвать "php5-cgi /путь/к/файлу.php"
где это настраивается?
Reply to: