How to setup webserver for Python

Richard rshaw2 at midsouth.rr.com
Thu Jul 3 11:40:24 EDT 2003


"A" <printers at sendme.cz> wrote in message news:<mailman.1057223466.3796.python-list at python.org>...
> Hello,
> I have a webhosting account with one company.
> I can use python from command line through Telnet(SSH) but can not run successfully 
> Python program from a browser.(They use Apache web server.)
> What must I do?
> What permission must I set on directory and the python file?
> Here is a simple program I would like to run 
> ########
> #!/usr/bin/python 
> print "Content-Type: text/html"    print
> print"AAA"
> ########
> Thanks for help
> Ladislav
> 
> I look forward to hearing from you soon.
> 
> Best regards,
> Ladislav Blazek( Mr.)

I would ask if they have mod_python setup, and if not, I would request
it. This keeps python loaded into memory so there is much less load
put on the server than having to load python every time your page got
a hit.

Richard




More information about the Python-list mailing list