Configuring Apache for Python
David Porter
jcm at bigskytel.com
Tue Nov 7 02:15:51 EST 2000
* kevinh25 at my-deja.com <kevinh25 at my-deja.com>:
> 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-
#!/usr/bin/python
-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.
David
More information about the Python-list
mailing list