rendered paste bodyScript i'm trying to run:
[root@hostname cgi-bin]# cat test2.cgi
#!/usr/bin/perl -tw
print "Content-type: text/html\n\n";
print "<HTML><HEAD>";
print "<TITLE>CGI Test</TITLE>";
print "</HEAD>";
print "<BODY><H2>testing cgi scripts!</H2>";
print "</BODY></HTML>";
-----------------------------------------------------
This is what i get when i run from command line:
[root@hostname cgi-bin]# perl -t test2.cgi
Content-type: text/html
<HTML><HEAD><TITLE>CGI Test</TITLE></HEAD><BODY><H2>testing cgi scripts!</H2></BODY></HTML>[root@hostname cgi-bin]#
------------------------------------------------------
errors in log files:
[Mon Nov 13 03:40:39 2006] [error] [client xx.xxx.xxx.xxx] Premature end of script headers: test2.cgi
[Mon Nov 13 03:40:39 2006] [error] [client xx.xxx.xxx.xxx] failed to open log file /var/log/httpd/suexec_log
[Mon Nov 13 03:40:39 2006] [error] [client xx.xxx.xxx.xxx] fopen: Permission denied
[root@hostname httpd]# ls -lh /var/log/httpd/suexec_log
-rw-r--r-- 1 root apache 0 Nov 13 03:19 /var/log/httpd/suexec_log
[root@hostname cgi-bin]# ls -lh test2.cgi
-rwxr-xr-x 1 someuser psacln 199 Nov 13 03:09 test2.cgi
[root@hostname cgi-bin]#