Fast CGI, Lighttpd, Ubuntu - PullRequest
       21

Fast CGI, Lighttpd, Ubuntu

0 голосов
/ 30 августа 2009

Знаком ли этот файл журнала кому-то из пользователей UBUNTU?

Файл журнала Lighttpd:

> 2009-08-30 21:37:45: (log.c.75) server started 
> 2009-08-30 21:37:45: (mod_fastcgi.c.1029) the fastcgi-backend php5-cgi *failed* to start: 
> 2009-08-30 21:37:45: (mod_fastcgi.c.1033) *child exited with status 9 php5-cgi* 
> 2009-08-30 21:37:45: (mod_fastcgi.c.1036) If you're trying to run PHP as a FastCGI backend, make sure you're using the FastCGI-enabled version.
> You can find out if it is the right one by executing 'php -v' and it should display '(cgi-fcgi)' in the output, NOT '(cgi)' NOR '(cli)'.
> For more information, check http://trac.lighttpd.net/trac/wiki/Docs%3AModFastCGI#preparing-php-as-a-fastcgi-programIf this is PHP on Gentoo, add 'fastcgi' to the USE flags. 
> 2009-08-30 21:37:45: (mod_fastcgi.c.1340) [ERROR]: *spawning fcgi failed*. 
> 2009-08-30 21:37:45: (server.c.908) Configuration of plugins failed. Going down. 

Пожалуйста, откройте секрет, как вы решили проблему с fcgi и заставили lighttpd запускаться, если вы это сделали.

Спасибо, Гоша.

1 Ответ

1 голос
/ 12 сентября 2009

Найдите правильный путь к исполняемому файлу PHP. Возможно, вам придется использовать php-cgi версию (по умолчанию php может быть php-cli, что не подходит).

Если у вас его нет, установите пакет php-cgi или скомпилируйте PHP с помощью --enable-fcgi.

...