Re: PHP doesn't connect to PG with SELinux

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



On 7/13/07, Martin Marques <martin@xxxxxxxxxxxxxxx> wrote:
I just migrated my FC4 server to CentOS 5 and had some problems with DB
connections from PHP to a PG server (remote server). The thing is that I
couldn't get an error, until I disabled SELinux. At that time, the PG
connections started working.

Are there any instructions on how to work with SELinux enabled and
multiple applications connecting one with another?

--
select 'mmarques' || '@' || 'unl.edu.ar' AS email;
---------------------------------------------------------
Martín Marqués          |   Programador, DBA
Centro de Telemática    |     Administrador
                Universidad Nacional
                     del Litoral
---------------------------------------------------------
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


setsebool -P httpd_can_network_connect_db=1

setroubleshoot  is your friend  of course you must have  X running



--
Leonel
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux