Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FastCGI error on Gentoo
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Raposatul
n00b
n00b


Joined: 25 Sep 2007
Posts: 53

PostPosted: Thu Feb 28, 2008 4:47 pm    Post subject: FastCGI error on Gentoo Reply with quote

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
View user's profile Send private message
Wormo
Developer
Developer


Joined: 29 Nov 2004
Posts: 526
Location: SB County California

PostPosted: Fri Feb 29, 2008 9:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
xces
Guru
Guru


Joined: 11 Oct 2002
Posts: 515

PostPosted: Tue Mar 04, 2008 6:48 pm    Post subject: Reply with quote

Show your relevant lighttpd configuration. Maybe you're trying to run it in a chroot-environment?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum