[CentOS] PHP doesn't connect to PG with SELinux

Leonel lnunez at gmail.com
Sat Jul 14 14:14:12 UTC 2007


On 7/13/07, Martin Marques <martin at bugs.unl.edu.ar> 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 at centos.org
> 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



More information about the CentOS mailing list