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:
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.
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()
Thank you.