[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] CGI/Perl Problem



 I am trying to run a CGI file on a website. (on RaQ 550)
> I wrote these lines:
> ------------------------------------------------------------------
> #!/usr/bin/perl --
> $inputline = "Welcome to the world of Perl CGI";
> print ( $inputline );
> print ("\n");
> ------------------------------------------------------------------
>
> I have enabled CGI for this website. but it is continuously giving me
> "Internal Server Error":
> ------------------------------------------------------------------
> The server encountered an internal error or misconfiguration and was
unable
> to complete your request. Your administrator may not have enabled CGI
> access for this directory.
> ------------------------------------------------------------------
>
> My question is how I can enable CGI for any directory?
>

You need to add the Content Type line to the script:

print "Content-type: text/html\n\n";



Ken Marcus
Precision Web Hosting
ken@xxxxxxxxxxxxxxxx
www.precisionweb.net