[CentOS] Getting perl CGI programs to work on CentOS 5 server

Mon Sep 22 15:48:59 UTC 2008
Andrew Allen <andy.allen at virgin.net>

I'm trying to get perl CGI programs to work from the cgi-bin (actually a
sub-directory cgi-bin/various) and have set appropriate permissions
using chmod 755. I'm currently testing using the simplest cgi program,
you know the one:
# howdy--the easiest of CGI programs

use CGI;

print <<END_of_Multiline_Text;
Content-type: text/html

<TITLE>Hello World</TITLE>
<H1>Greetings, Terrans!</H1>


This has worked absolutely fine in the past, but now when I invoke it,
either nothing appears in the browser (Mozilla Firefox) or I get
"Internal Server Error" - any ideas please?