CGI script is in plain text

BMA TRADING export at hope.cz
Fri Jul 4 01:39:27 EDT 2003


On 3 Jul 2003 at 19:56, 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
> 
Dear Ian,
Thank you for your reply.
I tried to rename it but it does NOT work.
In the same directory I can successfully run Perl script( .pl extension) but no Python 
scripts.
Any idea?
Thanks
Ladislav







More information about the Python-list mailing list