Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

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.