Index: [Article Count Order] [Thread]

Date:  Mon, 4 Dec 2006 10:10:13 +0100
From:  "Taco Scargo" <taco (at mark) scargo.nl>
Subject:  [coba-e:08066] Re: running python CGI script on BQ
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <009a01c71784$04e29ab0$14001fac@DELLP4TACO>
References:  <4573CD00.4050201 (at mark) cybertron.co.jp>
X-Mail-Count: 08066

Hi Jay,

I copied the file to my server, named id test.cgi
chmodded to 755
and enabled cgi for the site
as long as the file is owned by a normal user (not admin) it works.

Taco

----- Original Message ----- 
From: "Naotaka HOTTA" <fukuzo (at mark) cybertron.co.jp>
To: <coba-e (at mark) bluequartz.org>
Sent: Monday, December 04, 2006 8:23 AM
Subject: [coba-e:08065] running python CGI script on BQ


> Hi Blues
> 
> I am having difficulty running python CGI script on BlueQuartz.
> 
> I am keep getting "500-internal-server-error.html" message when I run
> script blow.
> 
> Dose anyone have idea where should I modify in httpd.conf to let the
> script show HTML?
> 
> 
> -----python CGI testing script
> 
> #! /usr/bin/env python
> # -*- coding: utf-8 -*-
> 
> import cgi
> import cgitb; cgitb.enable()
> 
> html = '''Content-Type: text/html
> 
> <html>
> <head>
>  <title>test.cgi</title>
> </head>
> <body>
> <h1>test of print test on web</h1>
> <a href="http://www.google.com">return</a>
> </body>
> </html>
> '''
> 
> print html
> -- 
> Jay HOTTA
> 
>