| From: | "zhuge xiao" <zhuge(at)Rinaix(dot)cn> |
|---|---|
| To: | pgsql-bugs(at)postgresql(dot)org |
| Subject: | BUG #2118: could not connect to server |
| Date: | 2005-12-20 08:44:32 |
| Message-ID: | 20051220084432.CBD23F0A7F@svr2.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-bugs |
The following bug has been logged online:
Bug reference: 2118
Logged by: zhuge xiao
Email address: zhuge(at)Rinaix(dot)cn
PostgreSQL version: 8.0.3
Operating system: Linux ( FC4 )
Description: could not connect to server
Details:
Help me!
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"?
The above message was produced by the below code:
if (PQstatus(conn) != CONNECTION_OK)
{
fprintf(stdout, PQerrorMessage(conn));
exit_nicely(conn);
}
How can I do? Please help me!
Thank you very much.
zhuge(at)Rinaix(dot)cn
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fred Perni | 2005-12-20 11:02:41 | BUG #2119: FOREIGN KEY ON DELETE RESTRICT |
| Previous Message | Bruce Momjian | 2005-12-17 21:59:45 | Re: [BUGS] Solaris cc compiler on amd: PostgreSQL does not |