Hi
Excellent Tutorial - got it working on my XP/Apache2 PC using mod_python !
But I cant seem to get anything running on 2 of my shared hosts - one using CGI and the other as mod !
For the one using as CGI, uploaded hello.py and set its permission to 755.
Path /usr/bin/python is also correct.
#! /usr/bin/python
def index():
s = """
<html>
<body>
<h2>Hello World!</h2>
</body>
</html>
"""
return s
This is what I have in my .htaccess
Options -Indexes +ExecCGI
AddHandler cgi-script .py
But
http://domain.com/hello.py return 500 Internal Server Error
Any idea why ?
CGI seems to be allowed in non cg-bin directories because I did the same for perl and it worked.
Thanks