os: centos 6

currently i have enabled selinux to Permissive for the server, i want it to be set to Enforcing but at the same time selinux should be disabled for outgoing psql connections from apache..

i have set this for apache

chcon -R -h -t httpd_sys_content_t project/

but postgres communication from apache fails, disabling selinux makes it work...

any idea what parameters are for postgresql in apache..

link|improve this question

45% accept rate
feedback

1 Answer

up vote 1 down vote accepted

Try this:

setsebool -P httpd_can_network_connect=1
link|improve this answer
cool that worked thanks quanta – krisdigitx Sep 6 '11 at 13:53
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.