Python With FastCGI Problem

I have two pythom script whit .cgi and .fcgi , the content flow:


def myapp(environ, start_response):
start_response(‘200 OK’, [(‘Content-Type’, ‘text/plain’)])
return [‘Hello World!\n’]

if name == ‘main’:
from fcgi import WSGIServer

the test.cgi work fine, but test.fcgi can’t work with the error logs:

[Sat Apr 14 09:09:25 2007] [error] [client] FastCGI: comm with (dynamic) server "/home/user/" aborted: (first read) idle timeout (60 sec) [Sat Apr 14 09:09:25 2007] [error] [client] FastCGI: incomplete headers (0 bytes) received from server "/home/user/" my $HOME/.bash_profile

[code]umask 002
PS1=’[\h]$ '
export PATH
if [ “$TERM” = “rxvt-unicode” ]; then
export TERM
export PYTHONPATH=”$HOME/packages/lib/python2.3/site-packages"
export LD_LIBRARY_PATH="$HOME/packages/lib"
export PATH="$HOME/packages/bin:$PATH"

[/code]and my file chmod 755 already.

My Blog