[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:
#!/usr/bin/perl
# howdy--the easiest of CGI programs

use CGI;

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

<HTML>
 <HEAD>
<TITLE>Hello World</TITLE>
</HEAD>
<BODY>
<H1>Greetings, Terrans!</H1>
</BODY>
</HTML>

END_of_Multiline_Text

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?

Thanks,
Andy