Local Python Server Installation

Kenneth Gomez kennethg at pd.jaring.my
Sat Sep 21 23:59:41 EDT 2002


Chris, you're right. It's an Apache config problem. I'll dig into the
doc's.

Thanks,
Regards,
Kenneth.


On Sat, 21 Sep 2002 11:31:50 -0500, "Chris Gonnerman"
<chris.gonnerman at newcenturycomputers.net> wrote:

>----- Original Message ----- 
>From: "Kenneth Gomez" <kennethg at pd.jaring.my>
>
>
>> I tried your method. But instead of getting a cgi listing of 
>> my environmental listings, all I saw on my browser was the 
>> two input lines ..i.e. import cgi and cgi.test()
>
>Your cgi is being displayed rather than executed.  The 
>configuration options for Apache are so complex, that entire 
>books have been written about configuring it... and Gerhard's
>suggestion only works on Windows platforms (AFAIK).  You didn't 
>name your platform, did you?  Or did I just miss it?
>
>You need to verify that Apache 1) recognizes .py files as CGI 
>scripts, and 2) allows you to run a CGI in the folder you're 
>putting it in.  You probably should put your script in the
>cgi-bin directory to start with.  If you are on a Unix/Linux
>system, you need to make sure that the script is marked 
>executable.
>
>Really, I think you need to spend some time with the Apache 
>docs.  It isn't a Python problem per se.
>
>Chris Gonnerman -- chris.gonnerman at newcenturycomputers.net
>http://newcenturycomputers.net
>
>

Cheers,
Kenneth Gomez.



More information about the Python-list mailing list