Re: Undefined function pg_connect()

Поиск
Список
Период
Сортировка
От Chris
Тема Re: Undefined function pg_connect()
Дата
Msg-id 4B676E2D.5060903@gmail.com
обсуждение исходный текст
Ответ на Re: Undefined function pg_connect()  (Gustavo Amarilla Santacruz <gusamasan@gmail.com>)
Ответы Re: Undefined function pg_connect()  (Gustavo Amarilla Santacruz <gusamasan@gmail.com>)
Список pgsql-php
Gustavo Amarilla Santacruz wrote:
> Thank you, all.
>
> I had access to the SELinux->Boolean; next, i check the option:
>
>  "Allow HTTPD scripts and modules to connect to databases over the
> network".
>
>
> Then, a new message was displayed:
>
> Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL:
> Ident authentication failed for user "gestock" .......
>
>
> I can login with gestock data (user/password) through the postgresql
> psql tool. But from apache i can not.

It's not using the password, it's just checking the username to see if
you're logged in as 'gestock' (but 'apache' is not 'gestock', hence the
error).

What does your postgresql pg_hba.conf file look like?

--
Postgresql & php tutorials
http://www.designmagick.com/


В списке pgsql-php по дате отправления:

Предыдущее
От: Gustavo Amarilla Santacruz
Дата:
Сообщение: Re: Undefined function pg_connect()
Следующее
От: Gustavo Amarilla Santacruz
Дата:
Сообщение: Re: Undefined function pg_connect()