Problem getting cgi script to work with apache?

Mauriat Miranda mirandam at gmail.com
Mon Jun 19 18:36:09 UTC 2006


On 6/19/06, Knute Johnson <knute at frazmtn.com> 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 at rabbitbrush cgi-bin]$ cat test.pl
> print "Content-Type: text/html\n\n";

Not sure, but should this be \r\n ?

> print "<html><head><title>test.pl</title></head><body>\n";
> print "<h1>test.pl</h1>\n";
> print "</body></html>\n";

Curious, do you have to have the following?:
use CGI;

> Any ideas on where to start would be greatly appreciated.

Seems like something is wrong in the script, guessing it isn't a
config problem (httpd, selinux, etc.)

-Mauriat




More information about the users mailing list