0

what do I need to run python on my webserver ?

Should I enable some Apache module ?

Thanks

4

Make sure you also look at mod_wsgi. It's a nice alternative to running mod_python. Also, depending on your application, FastCGI is also an option (see packages like flup, which kind of acts as a bridge between FastCGI & WSGI).

| improve this answer | |
  • +1 mod_wsgi is the preferred way of doing it these days. – David Z May 20 '10 at 19:40
0

Yea, you need mod_python.

Or you can enable cgi support by putting in a AddHandler cgi-script .py directive in your httpd.conf...You'll need to put a cgi shebang on the first line of your script as well (i.e. !#/usr/bin/python).

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.