Forgive a newbie's stupidity. I can't make Python CGI work with FRIHOST!
In public_html/cgi-bin I have 2 files. ".htaccess" and "mptest.py".
In htaccess I have:
In mptest.py:
Here, the file doesn't work: http://www.andreas.frih.net/cgi-bin/mptest.py.
What on earth am I doing wrong???
In public_html/cgi-bin I have 2 files. ".htaccess" and "mptest.py".
In htaccess I have:
| Code: |
|
<Directory "/domains/andreas.frih.net/public_html/cgi-bin/"> AddHandler python-program .py PythonHandler mptest PythonDebug On </Directory> |
In mptest.py:
| Code: |
| #!/usr/bin/env python
print "Content-type: text/plain\r\n\r\n", print "Hello world" |
Here, the file doesn't work: http://www.andreas.frih.net/cgi-bin/mptest.py.
| Quote: |
| Internal Server Error |
What on earth am I doing wrong???
