[Pgsql-ayuda] Problemas desde php

Ariel Nardelli ariel@empresanardelli.com.ar
Thu, 27 Sep 2001 19:40:36 -0300


Hola...
Tengo postgres 7.0 andando sobre el mandrake 8.0 con php4 y desde el
webmin puedo acceder al postgres sin problemas, acceder a las bases y
mirar el contenido sin problemas, pero cuando quiero acceder desde php a
las bases me tira este errror..

Warning: Unable to connect to PostgreSQL server: PQconnectPoll() -- connect=
() failed: Conexi=F3n rehusada Is the postmaster running (with -i) at 'loca=
lhost' and accepting connections on TCP/IP port '5432'? in /home/httpd/hord=
e-phplib/db_pgsql.inc on line 40

Warning: Supplied argument is not a valid PostgreSQL link resource in /home=
/httpd/horde-phplib/db_pgsql.inc on line 52

Warning: Supplied argument is not a valid PostgreSQL link resource in /home=
/httpd/horde-phplib/db_pgsql.inc on line 55

Warning: Supplied argument is not a valid PostgreSQL link resource in /home=
/httpd/horde-phplib/db_pgsql.inc on line 67

Warning: Unable to connect to PostgreSQL server: PQconnectPoll() -- connect=
() failed: Conexi=F3n rehusada Is the postmaster running (with -i) at 'loca=
lhost' and accepting connections on TCP/IP port '5432'? in /home/httpd/hord=
e-phplib/db_pgsql.inc on line 40

Warning: Supplied argument is not a valid PostgreSQL link resource in /home=
/httpd/horde-phplib/db_pgsql.inc on line 52

Warning: Supplied argument is not a valid PostgreSQL link resource in /home=
/httpd/horde-phplib/db_pgsql.inc on line 55

Warning: Supplied argument is not a valid PostgreSQL result resource in /ho=
me/httpd/horde-phplib/db_pgsql.inc on line 122

Warning: Unable to connect to PostgreSQL server: PQconnectPoll() -- connect=
() failed: Conexi=F3n rehusada Is the postmaster running (with -i) at 'loca=
lhost' and accepting connections on TCP/IP port '5432'? in /home/httpd/hord=
e-phplib/db_pgsql.inc on line 40

Warning: Supplied argument is not a valid PostgreSQL link resource in /home=
/httpd/horde-phplib/db_pgsql.inc on line 52

Warning: Supplied argument is not a valid PostgreSQL link resource in /home=
/httpd/horde-phplib/db_pgsql.inc on line 55

Warning: Cannot add header information - headers already sent by (output st=
arted at /home/httpd/horde-phplib/db_pgsql.inc:40) in /home/httpd/html/hord=
e/imp/mailbox.php3 on line 111

Esto me pasa desde el horde, pero igual me pasa con otros programas.
El usuario y la clave para acceder a la bases son correctos, pero no
logro acceder desde php.
En la configuracion esta pueso que deje acceder al postgres desde
localhost y desde el 127.0.0.1

Alguna idea de lo que puede pasar?.
--=20
Ariel Nardelli <ariel@empresanardelli.com.ar>
http://www.reconquista.com.ar