in reply to How to get over 'premature end of script headers' in Apache?
chcon -R -t httpd_sys_content_t /usr/local/web/cgi-bin [download]