Try something like;
#!/usr/bin/perl -w
print "Content-type: text/html\n\n";
print "Hello world, it works!\n";
This should print a line of black text on a white background if your path, permissions
etc are OK
[EMAIL PROTECTED] wrote:
> Hi Sally (Kevin?),
>
> sounds like somthing in your webserver cgi-setup is wrong..
> perhaps your path to perl is wrong in the script being called?
> Or you haven't edited any relevant bits of the code for file locations etc..
>
> I am have never used Matt's Scripts, but have you checked that your webserver can
>execute cgi's?
> Check your webserver error logs, and also run the perl script from the command line.
>
> One other thing, although free scripts like Matt's are useful, if you plan to
>install (and maintain)
> perl scripts on a website, reading a book such as Learning Perl:
> http://www.oreilly.com/catalog/lperl2/
>
> will save you much time in the long run.
> (ad you'll probably find you want to write your own scripts too).
> :-)
>
> Oh, and if the problem persists - it would be handy to know more detail like output
>from the error logs, webserver type, what errors the script produced from the command
>line etc.
> :-)
>
> --lucy
>
> <on 23.05.01, Kevin Williams wrote>
> > Has anybody used Matts guestbook?
> > I've tried using several versions (I thought they were by different people
> > until I got into the code) and each one has the same problem.
> > The HTML pages work fine, but when the links point to the perl bits I get an
> > internal server error that looks like:
> >
> > Internal Server Error
> > The server encountered an internal error or misconfiguration and was unable
> > to complete your request.
> > Please contact the server administrator, [EMAIL PROTECTED] and
> > inform them of the time the error occurred, and anything you might have done
> > that may have caused the error.
> >
> > More information about this error may be available in the server error log.
> >
> > Does this suggest a code error or a server error, and has anyone else had
> > the same problem
> >
> > Thanks in advance,
> >
> > Sally
> >
> </>
>
> --
> Lucy Newman [EMAIL PROTECTED]
>
>