|
#1
|
|||
|
|||
|
I was just trying to run a python script from scgi-bin, and all I get is the text of the script echoed back on the screen, as if it was a plain text file. I changed exec permisisons, and activated scgi-n.
I copied this from another post here: #!/usr/bin/python import os, sys from cgi import escape print "Content-type: text/html" print "<pre>" print "<strong>Python %s</strong>" % sys.version keys = os.environ.keys() keys.sort() for k in keys: print "%s\t%s" % (escape(k), escape(os.environ[k])) print "</pre>" Any idea what I could be doing wrong? thanx |
|
#2
|
||||
|
||||
|
HostGator may be able to assist you with this. I would recommend opening a trouble ticket.
__________________
Have a great day, Evan |
|
#3
|
|||
|
|||
|
Thanks Evan, I opened a ticket and got a near instantaneous reply (good response times!).
The answer is: "Unfortunately, Python is not supported via Apache. This is only supported from the command line shell." Ah well, no python scgi-bin access for me it seems. Off to find another hosting service now. edit: not that I'm complaining -- support here is great -- just that I need a basic hosting package with the ability to run some python scripts (very low usage, so a dedicated server is overkill). Last edited by Meridian66; 06-30-2007 at 06:35 PM. |
|
#4
|
|||
|
|||
|
Update for anyone reading this. Unfortunately I had to move to another hosting company after a couple of good years with HostGator. However, given the rising popularity of Python for web frameworks, I expect HostGator will begin to support it at some point, at which point I will be back
|
|
#5
|
||||
|
||||
|
I thought HG supported Python??? It says so on the hosting features pages.... ?
|
|
#6
|
|||
|
|||
|
Quote:
http://www.hostgator.com/popup/python.html
|
|
#7
|
||||
|
||||
|
Quote:
i'm just as confused as you guys, anyway I've submitted a ticket, as i'll have to remove it from my own features list if they don't support it. I'll update when I recieve a responce. Regards, Steve Xx
__________________
The future is dark, the future is red! The Future is Smp ![]() |
|
#8
|
||||
|
||||
|
Kyle: hello, do you support python?
Jess: Yes Kyle: OK, thanks Jess: You're welcome! |
|
#9
|
||||
|
||||
|
Quote:
Anyway the answer: Quote:
__________________
The future is dark, the future is red! The Future is Smp ![]() |
|
#10
|
||||
|
||||
|
Yes, but yours is more specific -- and more useful.
|
|
#11
|
|||
|
|||
|
I got:
Please wait for a HostGator operator to respond. Welcome to HostGator Live Chat! You are now chatting with 'ChrisD'ChrisD: Welcome to HostGator, how may I assist you? Sam: hi, do you support python? ChrisD: Yes we do. Sam: Is that via the command line or Apache? There may be a problem communicating with ChrisD. Please wait while your chat is transferred to another operator. Welcome to HostGator Live Chat! You are now chatting with 'ChrisD'Then it broke lol |
|
#12
|
||||
|
||||
|
Quote:
Two ChrisD's working for the same company at the same time on the same shift. What are the odds of that?
__________________
Affordable Telephone Counselling |
|
#13
|
|||
|
|||
|
Quote:
|
|
#14
|
||||
|
||||
|
We do support Python on all of our servers. I'm not sure who told you this incorrect information, but I would like to find out. Is there a ticket number regarding this at all? Do you recall the name of the person?
AddHandler cgi-script .py Should allow you to run Python scripts without any problems. |
|
#15
|
||||
|
||||
|
See my livechat above...
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
All times are GMT -5. The time now is 01:25 AM.





i'm just as confused as you guys, anyway I've submitted a ticket, as i'll have to remove it from my own features list if they don't support it. 
Please wait for a HostGator operator to respond.




