unable to view my Hello World Python script in the browser

Status
Not open for further replies.

crmpicco

New Member
Messages
2
Reaction score
0
Points
0
I am unable to view my page in HTML at my domain - http://crmpicco.x10hosting.com/index.py

It is just a simple Python Hello World example. Can anyone advise of the path for Python or have i omitted anything?

Code:
#!/usr/bin/env python
print "Content-Type: text/html"
print
print """\
<html>
<body>
<h2>Hello World!</h2>
</body>
</html>
"""

Thanks,
Picco
 

DefecTalisman

Community Advocate
Community Support
Messages
4,147
Reaction score
5
Points
38
I am not sure on this but have you tried "#!/usr/bin/python" for the hash bang ?
 

DefecTalisman

Community Advocate
Community Support
Messages
4,147
Reaction score
5
Points
38
Is the script in your cgi-bin ? If no then try and move it there and set chkmod to 755.
 
Status
Not open for further replies.
Top