Hi all, I am trying to get python + fastcgi work on Lighty 1.4.18. I'm following the instructions here - http://cleverdevil.org/computing/24/python-fastcgi-wsgi-and-lighttpd. That mostly works, except for one case. I am unable to have Lighty spawn the test.fcgi script and have it work. I think the script is being spawned, however, the script does not seem to respond. I am clueless as to what could be the problem. Note that everything works fine if I manually start the test.fcgi script (i.e. I get back a 'Hello World!') I am attaching the relevant code: lighty.conf ----------- fastcgi.debug = 1 fastcgi.server = ( ".fcgi" => ( "localhost" => ( # "min-procs" => 1, # "max-procs" => 1, "socket" => "/tmp/fcgi.sock", "bin-path" => "/home/praveen/web/test.fcgi" ) ) ) lighty logs ----------- 2008-08-29 11:02:05: (mod_fastcgi.c.1303) --- fastcgi spawning local proc: /home/praveen/web/test.fcgi port: 0 socket /tmp/fcgi.sock min-procs: 1 max-procs: 1 2008-08-29 11:02:05: (mod_fastcgi.c.1328) --- fastcgi spawning port: 0 socket /tmp/fcgi.sock current: 0 / 1 ... 2008-08-29 10:39:52: (mod_fastcgi.c.2934) got proc: pid: 25006 socket: unix:/tmp/fcgi.sock-0 load: 1 ... <when I kill lighty> 2008-08-29 11:02:02: (server.c.1356) [note] graceful shutdown started 2008-08-29 11:02:02: (mod_fastcgi.c.2462) unexpected end-of-file (perhaps the fastcgi process died): pid: 25006 socket: unix:/tmp/fcgi.sock-0 2008-08-29 11:02:02: (mod_fastcgi.c.3254) response not received, request sent: 89839 on socket: unix:/tmp/fcgi.sock-0 for /test.fcgi , closing connection 2008-08-29 11:02:02: (mod_fastcgi.c.1486) released proc: pid: 25006 socket: unix:/tmp/fcgi.sock-0 load: 0 2008-08-29 11:02:02: (server.c.1470) server stopped by UID = 0 PID = 0 --- Any idea what I am doing wrong? Thanks in advance. Praveen
on 29.08.2008 18:53

