Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS v. 4 > Issue <<  110 of 616 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 5457
Last update: 08-28-06
Issue:
How do I disable SELinux protection for only Apache in Red Hat Enterprise Linux 4?
Resolution:

Disabling SELinux protection for individual programs like Apache is only recommended when you are modifying Apache in a manner that does not work well with SELinux. After disabling SELinux protection for Apache you will need to restart any httpd daemons which were started with SELinux protections. To acomplish this you should be able to run service httpd restart.

You can do this by using the Security Level Configuration Tool.

To start the application, select Applications => System Settings => Security level or type the command system-config-securitylevel level from a shell prompt. Select the SELinux tab in the window and click on Disable SELinux protection for httpd daemon checkbox under the category SELinux Service Protection. Click on the OK button. The changes made using this tool are immediate and do not require any further SELinux activities. You will, however, need to restart any httpd daemons which were started with SELinux enforcement active.

Secruity Level Configuration

You can also use the following command to to disable SELinux protection for Apache. This change will also be persistant across reboots. After running the command do not forget to restart the httpd daemon.

setsebool -P httpd_disable_trans 1 

Alternatively, you can also edit the file /etc/selinux/targeted/booleans and set the value httpd_disable_trans=1. You will need to either run

setsebool httpd_disable_trans 1 

or reboot the machine for this to take effect.

For more information see the SELinux users guide.


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS v. 4 > Issue <<   110  of  616  >>