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

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

This is connected with

I think I am unable to have my php application get access to the network. The error reported is in the above link.

What the solution proposed in is:

The firewall is enabled on my server: policy type is targeted, enforcing current is checked and HTTPD scripts to connect to the network were not allowed.

Where: Desktop > System Settings > Security Level > SELinux > httpd > HTTPD scripts to connect to the network was unchecked. I checked it and it is working now.

How can I change httpd.conf to do the above?

share|improve this question
up vote 1 down vote accepted

I solved my problem partially.

httpd scripts by default are not allowed to connect out to the network.
This would prevent a hacker from breaking into you httpd  server
and attacking other machines.  If you need scripts to be able to
connect you can set the httpd_can_network_connect boolean on.

setsebool -P httpd_can_network_connect 1

I ran this command and my script runs properly now, but I'm not sure if this setting will be retained if I restart the server / apache. Does anyone know what I have to do make this a 'permanent' setting?

share|improve this answer
I tested this by rebooting the server - the setting is retained – siliconpi Oct 22 '10 at 11:02

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.