How to setup webserver for Python

A

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: (e-mail address removed)
email2: (e-mail address removed)
email3: (e-mail address removed)
Fax:/Tel +420 516 447921
Tel:+420 516 447920,
Mobile:+420 602 849309
 
R

Richard

A said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top