Apache and Python and Ubuntu

Jorge Godoy godoy at ieee.org
Wed Mar 29 17:54:18 EST 2006


msuemnig at jjhill.org writes:

> The problem is the programs just dump the contents to the browser in
> plain text.  Or, in the case of the .py files, I am prompted to
> download the .py file.  How can I get apache to recognize that it
> should execute the .cgi script?
>
> Is there any special thing I need to do to apache to get it to know
> that the python interpreter should be used for all .cgi files?

You should configure your Apache: 

- http://httpd.apache.org/docs/2.2/
  - http://httpd.apache.org/docs/2.2/howto/cgi.html


-- 
Jorge Godoy      <godoy at ieee.org>

"Quidquid latine dictum sit, altum sonatur."
- Qualquer coisa dita em latim soa profundo.
- Anything said in Latin sounds smart.



More information about the Python-list mailing list