Search Postgresql Archives

Re: php pg_connect fails, pgsql works

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxx http://www.gregsmith.com Baltimore, MD

--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux