[Tfug] cgi on Apache

Rich r-lists at studiosprocket.com
Wed Aug 8 17:43:59 MST 2007


On Aug 8, 2007, at 2:40 pm, doug1 at email.arizona.edu wrote:

> Hi George,
>  I added those line,but now I am getting a internal sever error, I  
> know its not
> my script because my script only consists of the lines:
"Internal server error" pretty much *always* means it's your script.  
Is it executable? Does the first line match "which perl"?

> #!/usr/bin/perl
>
> print "Content-type:text/html\n\n";

That looks okay.

> the error logs
> Premature end of script headers: test.cgi
>
> so could it the result of permissions?
There -- you said it!

This should get you going:
chmod +x test.cgi

R.





More information about the tfug mailing list