-------- Original Message -------- Subject: Re: [GENERAL] CGI program cannot access database Date: Fri, 08 Oct 2004 10:34:12 +0400 From: Maarten Boekhold <[EMAIL PROTECTED]> To: Samik Raychaudhuri <[EMAIL PROTECTED]> References: <[EMAIL PROTECTED]>
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
---------------------------(end of broadcast)--------------------------- TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]