Re: PHP cann't access to postgres databse

Поиск
Список
Период
Сортировка
От Andy Shellam
Тема Re: PHP cann't access to postgres databse
Дата
Msg-id 4A44FD50.9040609@networkmail.eu
обсуждение исходный текст
Ответ на Re: PHP cann't access to postgres databse  (donghe@caltech.edu)
Ответы Re: PHP cann't access to postgres databse  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список 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 по дате отправления:

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: PHP cann't access to postgres databse
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: PHP cann't access to postgres databse