Re: php pg_connect fails, pgsql works

Поиск
Список
Период
Сортировка
От Greg Smith
Тема Re: php pg_connect fails, pgsql works
Дата
Msg-id Pine.GSO.4.64.0803101755450.24133@westnet.com
обсуждение исходный текст
Ответ на Re: php pg_connect fails, pgsql works  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Mon, 10 Mar 2008, Tom Lane wrote:

> I don't know much about how to fix it, other than the extremely
> brute-force tool of "setenforce 0".  On current Fedora it looks like the
> way is probably "setsebool -P allow_user_postgresql_connect 1", but I'm
> not sure if RHEL5 uses that approach or something older.

I was able to work around a similar issue using Robert's article at
http://people.planetpostgresql.org/xzilla/index.php?/archives/310-typically-I-recommend-you-disable-SELinux....html
where he suggests that "setsebool -P httpd_can_network_connect_db=1" is
the magic incantation for RHEL5.  That fixed my problem using PHP there.

--
* Greg Smith gsmith@gregsmith.com http://www.gregsmith.com Baltimore, MD

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

Предыдущее
От: mgainty@hotmail.com
Дата:
Сообщение: Re: ISO something like "#if 0 ... #endif" for SQL code
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: php pg_connect fails, pgsql works