FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Python CGI work with FRIHOST





lasdjfk
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:
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???
Daniel15
-close-, this is a duplicate of http://www.frihost.com/forums/vt-43909.html
Related topics
how to run the cgi at frihost???
Does frihost still support Python for CGI programming
Python beginners help!
Problem with python cgi - does Python CGI work?
Python via CGI - A personal triumph
Python via CGI - A personal triumph
How to debug Python CGI errors
Is there a Python Hello World using Apache?
Python problems - Fixed
Python, CGI and CSS
Python CGI script 500 error
Python and SQLite
[Bug | Improvment ] FriHOST Main Page | Game Development S.
Tutorial needed for python cgi
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.