CGI script is in plain text
Trevor
trevor at hotmail.com
Sat Jul 5 12:27:29 EDT 2003
On Thu, 03 Jul 2003 19:56:32 -0500, Ian Bicking wrote:
> 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
The line Sethandler /usr/bin/python.exe .py
This is a Unix/Linux host so it ain't python.exe is it?
regards
Trevor
More information about the Python-list
mailing list