Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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..

share|improve this question
up vote 1 down vote accepted

Try this:

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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