Re: PHP cann't access to postgres databse

From: Andy Shellam <andy-lists(at)networkmail(dot)eu>
To: donghe(at)caltech(dot)edu
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: PHP cann't access to postgres databse
Date: 2009-06-26 16:54:40
Message-ID: 4A44FD50.9040609@networkmail.eu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)caltech(dot)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? "
>
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Kevin Grittner 2009-06-26 17:07:11 Re: PHP cann't access to postgres databse
Previous Message Kevin Grittner 2009-06-26 16:41:10 Re: PHP cann't access to postgres databse