469,280 Members | 2,385 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,280 developers. It's quick & easy.

How to setup webserver for Python

A
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.)

BMA TRADING Ltd.
email1: ex****@sendme.cz
email2: ex****@bmatrading.com
email3: ex**********@quick.cz
Fax:/Tel +420 516 447921
Tel:+420 516 447920,
Mobile:+420 602 849309


Jul 18 '05 #1
3 1832
It is actually 'Options' not 'Option'

Try:
echo 'Options +ExecCGI' >.htaccess
in the console and see.

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

HTH, Jiri
Jul 18 '05 #2
It is actually 'Options' not 'Option'

Try:
echo 'Options +ExecCGI' >.htaccess
in the console and see.

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

HTH, Jiri
Jul 18 '05 #3
"A" <pr******@sendme.cz> wrote in message news:<ma*********************************@python.o rg>...
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
Jul 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by A | last post: by
4 posts views Thread by Tore Ferner | last post: by
4 posts views Thread by Richard Shea | last post: by
5 posts views Thread by paul kölle | last post: by
4 posts views Thread by g.sharpe | last post: by
6 posts views Thread by Fabian Braennstroem | last post: by
1 post views Thread by dxm | last post: by
6 posts views Thread by globalrev | last post: by
1 post views Thread by mpc | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.