Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Re: PHP Warning...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 6 Topic 15508 of 17437
Post > Topic >>

Re: PHP Warning: pg_connect(): Unable to connect to PostgreSQL server: could not connect to server:

by haraldarminmassa@[EMAIL PROTECTED] ("Harald Armin Massa") May 12, 2008 at 02:26 PM

hello,

most crucial information is missing, like:

- your operating system
- your postgresql version
- on which computer is your database server running
- is your database server running


But most likely your problem is that you did not configure PostgreSQL
to listen to TCP/IP-requests. Which again makes it most likely that
you are using a way outdated PostgreSQL Version (that ist < 8.x)

Please update to 8.3.1, and adjust your postgresql.conf, parameter

"listen_addresses (string)"

accordingly.

Best wishes,

Harald

On Mon, May 12, 2008 at 11:58 AM, Abdus Samad Ansari
<ansarias@[EMAIL PROTECTED]
> wrote:
> PHP Warning:  pg_connect(): Unable to connect to PostgreSQL server:
>  could not connect to server:
>  I have setup PHP/Postgres and is running fine upto do***ent root
>  i.e. /var/www/html, but when i am calling it through a cgi-bin php file
>  it is giving log error as :
>  [error] [client 127.0.0.1] PHP Warning:  pg_connect(): Unable to
connect
>  to PostgreSQL server: could not connect to server: \x04\xe6\xe3\xbfPF;
>
>  what may be the solution.
>
>  --Abdus Samad Ansari
>
>
>
>  --
>  Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
>  To make changes to your subscription:
>  http://www.postgresql.org/mailpref/pgsql-general
>



--=20
GHUM Harald Massa
persuadere et programmare
Harald Armin Massa
Spielberger Stra=DFe 49
70435 Stuttgart
0173/9409607
fx 01212-5-13695179
-
EuroPython 2008 will take place in Vilnius, Lithuania - Stay tuned!

--=20
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 6 Posts in Topic:
PHP Warning: pg_connect(): Unable to connect to PostgreSQL
ansarias@[EMAIL PROTECTED  2008-05-12 09:58:17 
Re: PHP Warning: pg_connect(): Unable to connect to PostgreSQL s
haraldarminmassa@[EMAIL P  2008-05-12 14:26:52 
Re: PHP Warning: pg_connect(): Unable to connect to PostgreSQL s
tgl@[EMAIL PROTECTED] (T  2008-05-12 10:44:41 
Re: PHP Warning: pg_connect(): Unable to connect to PostgreSQL s
aanderson@[EMAIL PROTECTE  2008-05-12 10:59:03 
Re: PHP Warning: pg_connect(): Unable to connect to PostgreSQL
dalroi@[EMAIL PROTECTED]   2008-05-13 08:10:56 
Re: PHP Warning: pg_connect(): Unable to connect to
ansarias@[EMAIL PROTECTED  2008-05-26 10:07:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Nov 22 12:48:54 CST 2008.