Newbie: How do you enable python scripts in apache server?

Husam husam at macrozon.net
Thu Jun 5 20:13:50 CEST 2003


>      cgi-bin/            root for cgis
>        mytest2.py        execute, and report out what it generates
>
> If you put your code at mytest1.py, the server thinks you just mean to
> report the raw text (your symptom).  If you put it at mytest2.py, then
> the server will know you mena it to be executed.

Yes, the script sits in /var/www/cgi-bin/, which is the root directoy of the
domain the machine serves.
Also, I chmod +x test.py, but no go.







More information about the Python-list mailing list