CGI script is in plain text
Ian Bicking
ianb at colorstudy.com
Thu Jul 3 20:56:32 EDT 2003
On Thu, 2003-07-03 at 15:39, A wrote:
> I have a webhosting account with one company.
> They have Apache running.
> When I start CGI script from a web browser, the result is plain text( the copy of that script)
> I can not access
> httpd.conf
> file so I changed
> .htaccess
> file. I put into it
>
> Options +ExecCGI
> Sethandler /usr/bin/python.exe .py
Try renaming the file to .cgi -- as long as the #! line is right, it
doesn't matter the extension. Also, you may have to put the script in
the cgi-bin directory.
Ian
More information about the Python-list
mailing list