On Mon, 28 Jun 2010 22:25:13 +0800
Denis Feklushkin <[email protected]> wrote:

> 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"
> где это настраивается?

вот буквально 3 дня назад о том же речь заходила - как бы php-fcgi из коробки 
заставить работать:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=426780#50

так что коробочного решения ещё нет, я пока буду юзать runit-script из поставки 
php-cgi


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]

Ответить