From: | Maarten Boekhold <boekhold(at)emirates(dot)net(dot)ae> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Cc: | Samik Raychaudhuri <samik(at)freeshell(dot)org> |
Subject: | [Fwd: Re: CGI program cannot access database] |
Date: | 2004-10-08 06:34:47 |
Message-ID: | 41663507.3080506@emirates.net.ae |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
-------- Original Message --------
Subject: Re: [GENERAL] CGI program cannot access database
Date: Fri, 08 Oct 2004 10:34:12 +0400
From: Maarten Boekhold <boekhold(at)emirates(dot)net(dot)ae>
To: Samik Raychaudhuri <samik(at)freeshell(dot)org>
References: <4165F78F(dot)7070002(at)freeshell(dot)org>
Samik Raychaudhuri wrote:
> Hello,
> I am trying to run a perl CGI program for accessing a database. The
> program runs fine from command prompt, producing expected output. But it
> gives errors while running as CGI.
Are you trying to run this under cygwin? If so, there's a very recent
thread on the cygwin mailing list about this. Apache clears the
environment before launching a CGI script, but the winsock API requires
the SYSTEMROOT environment variable to be set. You can configure apache
*not* to remove that variable from the environment.
Maarten
From | Date | Subject | |
---|---|---|---|
Next Message | Thomas Madsen | 2004-10-08 08:17:21 | Re: 8.0 questions |
Previous Message | Brian Morton | 2004-10-08 06:19:15 | Re: interfaces for python |