6

I need to run a simple request/response python module under an existing system with windows/apache/FastCGI.

All the FastCGI wrappers for python I tried work for Linux only (they use socket.fromfd() and other such shticks).

Is there a wrapper that runs under windows?

Paul Oyster
  • 2,237
  • 3
  • 18
  • 13

3 Answers3

2

You might find it easier to ditch FastCGI altogether and just run a python webserver on a localhost port. Then just use mod_rewrite to map the apache urls to the internal webserver.

(I started offering FastCGI at my hosting company and to my surprise, nearly everyone ditched it in favor of just running their own web server on the ports I provided them.)

tangentstorm
  • 7,183
  • 2
  • 29
  • 38
1

A Django bug suggests that python-fastcgi will work for you, and its PyPI page reports that it works on Windows.

Paul Fisher
  • 9,618
  • 5
  • 37
  • 53
  • already tried it. the c code does not compile. if no other option, i'll dive into it, but first looking for a simpler solution. – Paul Oyster Nov 23 '08 at 20:48
0

I'd suggest mod_python or mod_wsgi.

S.Lott
  • 384,516
  • 81
  • 508
  • 779