[FastCGI] Is it enabled? 500 error when trying to run python FCGI script

Status
Not open for further replies.

bienvenidoainternet

New Member
Messages
1
Reaction score
0
Points
0
Hello, I have a free hosting account on x10hosting and I'd like to know if it's possible to run a FCGI script. I'm trying to run a test script but I get a 500 error.

I'm using this fcgi wrapper: http://svn.saddi.com/py-lib/trunk/fcgi.py
And this is the script:

Code:
#!/usr/bin/env python

from fcgi import WSGIServer

def app(env, start):
    start('200 OK', [('Content-Type', 'text/plain')])
    yield 'Hello!\n'
    yield '\n'

WSGIServer(app).run()
Normal python works for me but I get a 500 error when trying to run this. Why is that? (I'm trying to run it from cgi-bin with permission on 755)

Thank you.
 

masshuu

Head of the Geese
Community Support
Enemy of the State
Messages
2,293
Reaction score
50
Points
48
i just tried to import it, and using my script, got an error:
Code:
try:
  from fcgi import WSGIServer
  print "fcgi moduel Loaded"
except Exception as inst:
  print "Error:", inst
Code:
Error: No module named fcgi
If you want, you can suggest that x10 add the module in the Suggestions forum
 
Last edited:
Status
Not open for further replies.
Top