>On Mon, 2006-06-19 at 10:43 -0700, Knute Johnson wrote: >> I was trying to test a simple cgi script with my Apache server this >> morning and I'm getting an error that I can't run down. System is >> FC5 with latest updates. Script, httpd error log, selinux bools, and >> directory listing follow: >> >> [knute@rabbitbrush cgi-bin]$ cat test.pl >> print "Content-Type: text/html\n\n"; >> print "<html><head><title>test.pl</title></head><body>\n"; >> print "<h1>test.pl</h1>\n"; >> print "</body></html>\n"; >> >> [Mon Jun 19 10:24:18 2006] [error] [client 208.1.40.46] Premature end >> of script headers: test.pl >> [Mon Jun 19 10:25:54 2006] [error] [client 208.1.40.46] (8)Exec >> format error: exec of '/var/www/cgi-bin/test.pl' failed >> >> [root@rabbitbrush cgi-bin]# /usr/sbin/getsebool -a | grep http >> allow_httpd_anon_write --> off >> allow_httpd_sys_script_anon_write --> off >> httpd_builtin_scripting --> on >> httpd_can_network_connect --> off >> httpd_can_network_connect_db --> off >> httpd_can_network_relay --> off >> httpd_disable_trans --> off >> httpd_enable_cgi --> on >> httpd_enable_ftp_server --> off >> httpd_enable_homedirs --> on >> httpd_ssi_exec --> off >> httpd_suexec_disable_trans --> off >> httpd_tty_comm --> off >> httpd_unified --> on >> >> [root@rabbitbrush cgi-bin]# ls -Z >> -rwxr-xr-x root root system_u:object_r:httpd_sys_script_exec_t >> test.pl >> >> Any ideas on where to start would be greatly appreciated. > >Add the following line to the top of your script: > >#!/usr/bin/perl > Yes I'm sorry I actually had that in the script and took it out to test and didn't put it back before I posted. It doesn't work with it either. -- Knute Johnson Molon Labe...