Selinux issue with cgi scripts
Was having a big issue with selinux limiting access to my old legacy cgi-scripts in apache. Ended up removing selinux restrictions from this particular script file.
chcon -h -t httpd_unconfined_script_exec_t slides_by_pcd /usr/local/apache/cgi-bin/my_script
Some of the symptoms from apache access_log included :
1. Can’t open perl script
2. Premature end of script headers