Configuring Apache for Python

David Porter jcm at
Tue Nov 7 08:15:51 CET 2000

* kevinh25 at <kevinh25 at>:
> I know this is simple and easy, but I cannot figure out how to
> configure Apache to run Python scripts.

It is probably already configured for them. Put them in the cgi-bin, mark
them as executable, and add a line like this to them-


-where /usr/bin/python points to the python interpreter.

I read that '#!/usr/bin/env python' should not be used with apache, because
its shell might have a limited path.


More information about the Python-list mailing list