Parfum Shop's Blog

You come when you need, away when you get

Disable SELinux for only Apache / httpd in Linux

By • Jul 6th, 2009 • Category: Linux

You can disable Apache SELinux protection easily. Please keep in mind that by disabling SELinux for apache you are inviting more security related problems.
Disable Apache SELinux Protection

Open /etc/selinux/targeted/booleans file using a text editor:

# vi /etc/selinux/targeted/booleans

Append or modify value for httpd_disable_trans as follows:
httpd_disable_trans=1
Save and close the file. Type the following two commands:

# setsebool httpd_disable_trans 1
# /etc/init.d/httpd restart

GUI tool to disable SELinux for Apache

Open a shell prompt
Type the command system-config-securitylevel
system-config-securitylevel &
Next select SELinux tab > click on Disable SELinux protection for httpd daemon checkbox > Save the changes
Finally restart httpd service:

# /etc/init.d/httpd restart

is
Email this author | All posts by

3 Responses »

  1. iqemuvuj…

    Convert 62 Kgs To Pounds

    A T Timberline Tires

  2. vyhyhin…

    Sample Sympathy Thanl You Notes Cards

  3. ????? ???? ? ???????????? ??? ????????….

    # vi /etc/selinux/targeted/booleans Append or modify value for httpd_disable_trans as follows: httpd_disable_trans=1 Save and close the file…..

Leave a Reply