im new with Python CGI Programming and i start with getting errors :(
so i start a simple 'hello world' script but i got 500 Internal Server Error
the index.py file:
#!/usr/bin/python
#!/Python27/python
import cgi
import cgitb; cgitb.enable()
print "Content-Type: text/html\n\n"
print "hello world"
.htaccess file:
Options Indexes FollowSymLinks
Add ExecCGI
Options Indexes FollowSymLinks ExecCGI
AddHandler cgi-script .py .cgi
DirectoryIndex index.py
i tried with chmod but same problem :( help me please
sudo chmod 755 index.py
? – bigOther