View previous topic :: View next topic |
Author |
Message |
Raposatul n00b
Joined: 25 Sep 2007 Posts: 53
|
Posted: Thu Feb 28, 2008 4:47 pm Post subject: FastCGI error on Gentoo |
|
|
Greetings,
I have a problem with Lighttpd and Fastcgi. The output error is:
Quote: | ~ # 2008-02-28 18:40:02: (mod_fastcgi.c.990) chdir failed: No such file or directory /usr/bin/php-cgi
2008-02-28 18:40:02: (mod_fastcgi.c.999) execve failed for: /usr/bin/php-cgi No such file or directory
2008-02-28 18:40:02: (mod_fastcgi.c.1025) the fastcgi-backend /usr/bin/php-cgi failed to start:
2008-02-28 18:40:02: (mod_fastcgi.c.1029) child exited with status 2 /usr/bin/php-cgi
2008-02-28 18:40:02: (mod_fastcgi.c.1032) 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.
2008-02-28 18:40:02: (mod_fastcgi.c.1336) [ERROR]: spawning fcgi failed.
2008-02-28 18:40:02: (server.c.892) Configuration of plugins failed. Going down |
Php has cgi support, and that path exists!
Quote: | host ~ # php -v
PHP 5.2.5-p20080206-pl3-gentoo (cli) (built: Feb 28 2008 18:33:04)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies |
Quote: |
host ~ # php-cgi -v
PHP 5.2.5-p20080206-pl3-gentoo (cgi-fcgi) (built: Feb 28 2008 18:34:55)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies |
Quote: | ls /usr/bin/php-cgi
/usr/bin/php-cgi
|
Thanks a lot guys! |
|
Back to top |
|
|
Wormo Retired Dev
Joined: 29 Nov 2004 Posts: 526 Location: SB County California
|
Posted: Fri Feb 29, 2008 9:42 pm Post subject: |
|
|
I think running lighttpd under strace might give some helpful clues. Post the relevant excerpt from the strace output if you need help interpreting it. |
|
Back to top |
|
|
xces Guru
Joined: 11 Oct 2002 Posts: 515
|
Posted: Tue Mar 04, 2008 6:48 pm Post subject: |
|
|
Show your relevant lighttpd configuration. Maybe you're trying to run it in a chroot-environment? |
|
Back to top |
|
|
|