> i've decided to learn some python to do my cgi programming assignment. 
> However, when I try to run a basic script on my server, I am prompted 
> with a download box from mozilla.



> this is the script:
> 
> #!/usr/bin/python
> print "Content-type: text/html\n\n"
> print "Hello world\n"
> 
> I can execute cgi programs that are written in C(and them compiled of 
> course) from within my ~/public_html/cgi-bin direcory.
> 
> any ideas?

The web server is using some combination of directory (or URL location), 
file extension and/or file execute bits to determine that your application 
should be executed as a CGI. Make sure your Python CGIs have the same file 
extension and are in the same directory as your C programs and all have 
the execute bit accessible to the webserver user.

Check with your web server administrator for the details on what the 
server uses to determine if a file is a CGI to be executed. If you are 
using Apache, the settings are all explained in detail at:

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

thornton



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to