Skip site navigation (1) Skip section navigation (2)

Re: BUG #2118: could not connect to server

From: Devrim GUNDUZ <devrim(at)commandprompt(dot)com>
To: zhuge xiao <zhuge(at)Rinaix(dot)cn>
Cc: "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #2118: could not connect to server
Date: 2005-12-20 15:09:56
Message-ID: 1135091397.2497.1.camel@pgbuildfarm.gunduz.org (view raw or flat)
Thread:
Lists: pgsql-bugs
Hi,

On Tue, 2005-12-20 at 08:44 +0000, zhuge xiao wrote:
> PostgreSQL version: 8.0.3
> Operating system:   Linux ( FC4 )
> Description:        could not connect to server
> Details: 

> I have edited the program testlibpq.c which is copied from the PostgreSQL
> document to make it become a CGI program. And I have succeeded to compile
> the programme, testlibpq.c from the command line:
>    [zhuge(at)xiao2 src]$ cc -o testlibpq testlibpq.c -lpq
> 
> And it can run from the command line:
>    [zhuge(at)xiao2 src]$ ./testlibpq
> 
> Then, I copied the excuteable program to the CGI directory,
> /var/www/cgi-bin. And let it run from the Mozilla Firefox browser whose URL
> was http://localhost/cgi-bin/testlibpq. But I failed. The result was that
> the below message was displayed in the browser:
> could not connect to server: Permission denied
> Is the server running locally and accepting connections on Unix domain
> socket "/tmp/.s.PGSQL.5432"?
 
Is postmaster running?

Regards,
-- 
The PostgreSQL Company - Command Prompt, Inc. 1.503.667.4564
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
Managed Services, Shared and Dedicated Hosting
Co-Authors: PL/php, plPerlNG - http://www.commandprompt.com/


In response to

pgsql-bugs by date

Next:From: Tom LaneDate: 2005-12-20 15:18:35
Subject: Re: BUG #2119: FOREIGN KEY ON DELETE RESTRICT
Previous:From: Fred PerniDate: 2005-12-20 11:02:41
Subject: BUG #2119: FOREIGN KEY ON DELETE RESTRICT

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group