28 июня 2010 18:25:13 Denis Feklushkin писали: > 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" где это настраивается?
Тут вы все настроили правильно, дальше нужно настроить fastcgi демон есть хорошая статья http://seriyps.ru/blog/2009/11/06/nginx-php-fcgi-na-ubuntu/ вам нужно только изменить параметры и ip и порт на сокет --- Иван Борзенков <ivan1...@list.ru>
signature.asc
Description: This is a digitally signed message part.