How to setup webserver for Python

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • A

    How to setup webserver for Python

    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: export@sendme.c z
    email2: export@bmatradi ng.com
    email3: exportimport@qu ick.cz
    Fax:/Tel +420 516 447921
    Tel:+420 516 447920,
    Mobile:+420 602 849309




Working...