Hi, I have a Python FCGI script on my server which gives me an “Internal Server Error”. I got the script from
The script looks like this:
[code]#!/usr/bin/python2.4
from flup.server.fcgi import WSGIServer
def test_app(environ, start_response):
start_response(‘200 OK’, [(‘Content-Type’, ‘text/plain’)])
yield ‘Hello, world!\n’
WSGIServer(test_app).run()[/code]When I run the script from the ssh shell I get the following errors:
[silk]$ bash ~/cpufreak91.net/hello.fcgi
from: can't read /var/mail/flup.server.fcgi
/home/cpufreak91/cpufreak91.net/hello.fcgi: line 3: syntax error near unexpected token `('
/home/cpufreak91/cpufreak91.net/hello.fcgi: line 3: `def test_app(environ, start_response):'
(Also, Dreamhost set up my site’s memory restriction to be compatible with Python/FastCGI)
Is there anything that I am forgetting or doing wrong?
All Your Base Are Belong To Us!!! chown -r us ./base
"After three days without programming, life becomes meaningless.’’ – Tao of Programming Book 2