Because the error is "Permission denied", I'm guessing it's permissions on the /tmp/.s.PGSQL.5432 socket that will need checking?

The OP's PHP script when run standalone is probably running as root.

don...@caltech.edu wrote:
the error message in Apache error-log is " PHP Warning:  pg_connect() [<a
href='function.pg-connect'>function.pg-connect</a>]: Unable to connect to
PostgreSQL server: could not connect to server: Permission denied\n\tIs
the server running on host &quot;localhost&quot; and accepting\n\tTCP/IP
connections on port 5432? "


--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin

Reply via email to