"Kevin O'Gorman" <kogor...@gmail.com> writes: > I don't get much help from the logs. The access log shows that the > request got an error code, > 64.166.164.49 - - [15/Feb/2009:15:46:32 -0800] "GET /hex-bin/board > HTTP/1.1" 500 542 > > and all that the error log says is: > [Sun Feb 15 15:46:32 2009] [error] [client 64.166.164.49] Premature > end of script headers: board > > > Any idea how to debug this, or any intuitions about what I neglected to do?
Well a few things come to mind. Test the script by hand first. Check the permissions are 755 or the like. Test a very simple cgi that is known to work. Here is a simple one... make sure it has chmod 755 ------- 8< snip -------- ------- 8< snip -------- #!/usr/bin/perl print "Content-type: text/html\n\n"; print "REMOTE_ADDR = $ENV{REMOTE_ADDR}<BR> \n";