|
|
|
|
![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() |
Post
#1
Sep 3 2009, 04:58 PM
Hello, I am learning Python. I tested some basic codes like hello world code on PC with Python 2.6 installed. I was thinking if the hosting supports Python. I have the Logic Plan ($1.95+SSH access). Is python supported on this plan? I am a bit confused. There seem to be many Python interpreters available like cgi, fast cgi, wxpython and mod_python. I don't how to execute code for other interpreters. I searched for some info on running Python code on server. One of them told to copy the .py files to cgi-bin folder. I tried executing a simple hello world script with .py extension, no luck gave 500 internal server error. I checked MIME types, py was not defined there. It had only cgi, so I renamed it to .cgi but still it shows "500 INternal Server Error". I also gave it 755 permission with no luck. What am I doing wrong? I tried what I could, but then I need to ask the first question again "Is Python supported in Logic Package"? Thanks in advance. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [MODERATOR]
Posts: 2,728 Joined: 22-June 05 From: 127.0.0.1 — no place like it. Member No.: 8,528 myCENT:79.60 |
Post
#2
Sep 3 2009, 09:28 PM
Python is supported, but because the server is not using mod_python, running a Python script is different than what you would normally expect. If the Python script is not constructed properly, then you'll get that 500 internal server error. I do not have the knowledge on running Python with CGI, but you may want to look into Python with CGI.
|
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
8 | rob86 | 246 | 18th October 2009 - 01:52 AM Last post by: inverse_bloom |
|||
![]() |
3 | -Sky- | 664 | 12th June 2009 - 08:48 PM Last post by: -Sky- |
|||
![]() |
0 | OpaQue | 17,233 | 9th September 2004 - 08:40 AM Last post by: OpaQue |
|||
![]() |
13 | stevey | 5,867 | 16th August 2006 - 09:59 AM Last post by: NightRider |
|||
![]() |
6 | de4thpr00f | 2,244 | 6th August 2009 - 04:19 PM Last post by: iG-guest |
|||
![]() |
0 | adriantc | 146 | 9th September 2009 - 04:10 PM Last post by: adriantc |
|||
![]() |
7 | odomike | 19,028 | 30th April 2008 - 02:44 PM Last post by: FeedBacker |
|||
![]() |
6 | outwarsecrets | 10,720 | 27th October 2009 - 08:09 AM Last post by: NxTGaming |
|||
![]() |
97 | Xenon | 47,382 | 29th October 2009 - 04:25 PM Last post by: magiccode9 |
|||
![]() |
16 | sonesay | 2,595 | 31st July 2009 - 06:27 AM Last post by: iworld200 |
|||
![]() |
4 | bttfpromo | 10,204 | 1st March 2009 - 07:34 PM Last post by: mc05w37 |
|||
![]() |
11 | bttfpromo | 11,547 | 14th September 2004 - 08:55 PM Last post by: Magic-Node |
|||
![]() |
0 | BCD | 24 | 17th November 2009 - 04:59 PM Last post by: BCD |
|||
![]() |
9 | Panzer | 2,715 | 4th January 2007 - 08:52 PM Last post by: fffanatics |
|||
![]() |
7 | Raptrex | 13,228 | 27th August 2004 - 11:16 PM Last post by: Spectre |
|||
|
Open Discussion | Time is now: 22nd November 2009 - 07:42 AM |
Web Hosting Powered by ComputingHost.com.