IPB

Welcome Guest ( Log In | Register )



Tags
 
Reply to this topicStart new topic

Running Python Code On Server. Help Needed.


BCD
no avatar
Member [Level 3]
******
Group: Members
Posts: 96
Joined: 6-June 09
Member No.: 82,921
myCENT:73.90



Post #1 post 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.
Go to the top of the page
+Quote Post
truefusion
no avatar
Do you want to know?
****************
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 post 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.
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No New Posts   8 rob86 246 18th October 2009 - 01:52 AM
Last post by: inverse_bloom
No New Posts   3 -Sky- 664 12th June 2009 - 08:48 PM
Last post by: -Sky-
No New Posts   0 OpaQue 17,233 9th September 2004 - 08:40 AM
Last post by: OpaQue
No New Posts 13 stevey 5,867 16th August 2006 - 09:59 AM
Last post by: NightRider
No New Posts   6 de4thpr00f 2,244 6th August 2009 - 04:19 PM
Last post by: iG-guest
No New Posts   0 adriantc 146 9th September 2009 - 04:10 PM
Last post by: adriantc
No New Posts 7 odomike 19,028 30th April 2008 - 02:44 PM
Last post by: FeedBacker
No New Posts   6 outwarsecrets 10,720 27th October 2009 - 08:09 AM
Last post by: NxTGaming
No new   97 Xenon 47,382 29th October 2009 - 04:25 PM
Last post by: magiccode9
No new   16 sonesay 2,595 31st July 2009 - 06:27 AM
Last post by: iworld200
No New Posts   4 bttfpromo 10,204 1st March 2009 - 07:34 PM
Last post by: mc05w37
No New Posts   11 bttfpromo 11,547 14th September 2004 - 08:55 PM
Last post by: Magic-Node
No New Posts   0 BCD 24 17th November 2009 - 04:59 PM
Last post by: BCD
No New Posts   9 Panzer 2,715 4th January 2007 - 08:52 PM
Last post by: fffanatics
No New Posts   7 Raptrex 13,228 27th August 2004 - 11:16 PM
Last post by: Spectre


 



RSS Open Discussion Time is now: 22nd November 2009 - 07:42 AM

Web Hosting Powered by ComputingHost.com.