python hosting

Status
Not open for further replies.

hlkdogan

New Member
Messages
1
Reaction score
0
Points
0
Hi,

is it possible to host python applications with free account. I wanted to install trac system thus, i uploaded application via file manager. Would someone be able to tell me what I did wrong and if python hosting is possible, could you tell about process. Thanks
 
Last edited:

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
Yes, as long as they don't require SSH.

Did you put the files in the cgi-bin directory?
 
Last edited:

AngusThermopyle

Active Member
Messages
319
Reaction score
52
Points
28
First, add

AddHandler cgi-script .py

to .htaccess

Second, shebang line that works for me

#! /usr/local/bin/python

Third, permissions set to 0755

Fourth, must send out proper HTTP headers before content

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

Fifth, Python 2.6 installed, not Python 3. And you might have to download and install some modules into your filesystem.
 
Last edited:
Status
Not open for further replies.
Top