From: | "Carlos Costa" <ccosta(at)gmail(dot)com> |
---|---|
To: | pgsql-php(at)postgresql(dot)org |
Subject: | Problems connecting (from php to pg) |
Date: | 2008-06-07 20:57:13 |
Message-ID: | afa694620806071357u3e569a38vc445385a5b2bad04@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
Hello all,
I've the "standard connection error":
Unable to connect to PostgreSQL server: could not connect to server:
Permission denied.
Is the server running on host "localhost" and accepting TCP/IP
connections on port 5432?
The system is, yes, running and -I think- accepting TCP/IP connections
(I've tested this with netstat, I can connect to it with psql -h
localhost, and so).
In the server where I am testing this I have FC7 installed, so the php
and the pgsql-php packages are:
PHP Version 5.2.6
PostgreSQL(libpq) Version 8.2.7
I think that there is a problem in the pgsql-php module. I've created
a ssh tunnel, and trying the connection to the same database from
other server (with PHP Version 5.2.5-3 and pgsql that supports
postgresql 8.3.0).
The postgresql version in the server is the 8.3.0.
What can we do? I am doing these tests with a simple php code (just a
pg_connect()).
Thanks in advance,
Carlos.
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Alejandro | 2008-06-09 20:17:26 | Re: Problems connecting (from php to pg) |
Previous Message | Chris | 2008-05-19 01:42:45 | Re: pg_connect error |