Re: CGI program cannot access database

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Samik Raychaudhuri <samik(at)freeshell(dot)org>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: CGI program cannot access database
Date: 2004-10-08 19:40:09
Message-ID: 20041008194009.GB61143@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Oct 08, 2004 at 11:35:34AM -0500, Samik Raychaudhuri wrote:
> On 10/8/2004 11:05 AM, Michael Fuhr wrote:
> >
> >failed: could not create socket: Operation not permitted
> >
> >I wonder of packet filters are preventing the PostgreSQL connection
> >from working, and possibly causing DNS problems as well.
> >
> What exactly you mean by packet filters? How do I check what packet
> filters are active?

Packet filters are a firewalling mechanism -- they can be configured
to allow or prohibit certain network traffic. How to check on them
is system-dependent.

I didn't notice that you said the script ran successfully from the
command line; that makes it less likely that a firewall was interfering
because if that were the case, the script would probably fail under
all circumstances. Since you've reported that you solved the
problem, the packet filter hypothesis can be dismissed.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Dominic Mitchell 2004-10-08 20:00:27 Re: CGI program cannot access database
Previous Message Michael Paesold 2004-10-08 19:31:29 Re: Rollback on Error