Re: PHP cann't access to postgres databse - Mailing list pgsql-admin

From Andy Shellam
Subject Re: PHP cann't access to postgres databse
Date
Msg-id 4A44FD50.9040609@networkmail.eu
Whole thread Raw
In response to Re: PHP cann't access to postgres databse  (donghe@caltech.edu)
Responses Re: PHP cann't access to postgres databse  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-admin
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.

donghe@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 "localhost" and accepting\n\tTCP/IP
> connections on port 5432? "
>
>

pgsql-admin by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: PHP cann't access to postgres databse
Next
From: "Kevin Grittner"
Date:
Subject: Re: PHP cann't access to postgres databse