0

what do I need to run python on my webserver ?

Should I enable some Apache module ?

Thanks

aneuryzm
  • 1,714
  • 5
  • 26
  • 41

2 Answers2

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).

McJeff
  • 2,039
  • 13
  • 11
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).

Satanicpuppy
  • 5,946
  • 1
  • 17
  • 18