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


help python





pidd
help me use python in server 4 frihost
thank!!

file index.py
Code:
 #!/usr/bin/env python

print("Content-type: text/html")
print("")

print("<html>")
print("<body>")

print( "Hi there")

print("</body>")
print("</html>")


file .htaccess
Code:
Options -Indexes +ExecCGI
AddHandler cgi-script .cgi .pl .py



erro
403
Forbidden

You don't have permission to access / on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Apache/2 Server at www.pidd.frihost.org Port 80
.
Bondings
I have put a working index.py and .htaccess file in your public_html directory.

We are using mod_wsgi for Python here ( http://www.frihost.com/users/Bondings/blog/vp-137191.html ). Normally most big python applications support it.
pidd
oh , i think Mod_python ,hjxx
tks you help
Related topics
Python beginners help!
Python...
Python via CGI - A personal triumph
Python via CGI - A personal triumph
Session handlers in Frihost using Python? Help Needed!
developing a game in python
Python
Can't get python working
Is there a Python Hello World using Apache?
Python automation [SOLVED]
website in python
Python v Perl v php for Wiki advice needed
Python crypto module
Python support?
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Frihost Support

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