
It is better to use this script rather than turning off SELinux protection for httpd. This should only be used for a very complex httpd scripts, after exhausting all other options. httpd_unconfined_script_exec_t Set cgi scripts with httpd_unconfined_script_exec_t to allow them to run without any SELinux protection.httpd_sys_script_ra_t : Set files with httpd_sys_script_ra_t if you want httpd_sys_script_exec_t scripts to read/append to the file, and disallow other non sys scripts from access.httpd_sys_script_rw_t : Set files with httpd_sys_script_rw_t if you want httpd_sys_script_exec_t scripts to read/write the data, and disallow other non sys scripts from access.httpd_sys_script_ro_t : Set files with httpd_sys_script_ro_t if you want httpd_sys_script_exec_t scripts to read the data, and disallow other sys scripts from access.

httpd_sys_script_exec_t : Set cgi scripts with httpd_sys_script_exec_t to allow them to run with access to all sys types.


The httpd is the Apache HyperText Transfer Protocol (HTTP) daemon i.e. Step 1: Configuring Apache We’ll configure the web server to start off with, aware of the fact that it is not yet capable of running in this configuration.
