Re: Start up script for lighttpd?
Jack L <jlist9 <at> yahoo.ca>
2008-06-14 21:40:38 GMT
In my case, lighttpd starts the fastcgi process automatically.
The exact error:
[root <at> server init.d]# Traceback (most recent call last):
File "/web/webapp.py", line 4, in ?
ImportError: No module named web
2008-06-14 17:38:27: (mod_fastcgi.c.1025) the fastcgi-backend /web/webapp.py failed to start:
2008-06-14 17:38:27: (mod_fastcgi.c.1029) child exited with status 1 /web/webapp.py
2008-06-14 17:38:27: (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
this is PHP on Gentoo, add 'fastcgi' to the USE flags.
2008-06-14 17:38:27: (mod_fastcgi.c.1336) [ERROR]: spawning fcgi failed.
2008-06-14 17:38:27: (server.c.895) Configuration of plugins failed. Going down.
Saturday, June 14, 2008, 2:04:22 PM, you wrote:
> On Sat, 14 Jun 2008, Jack L wrote:
>> I tried modifying from another file myself. Somehow it doesn't
>> start the back end process (Python FCGI) properly.