Re: Newbie Question
From: Gunnar Hjalmarsson (noreply_at_gunnar.cc)
Date: 01/03/05
- Next message: PerlFAQ Server: "FAQ 8.32: How can I write expect in Perl?"
- Previous message: John D. Sanders: "Re: Newbie Question"
- In reply to: John D. Sanders: "Newbie Question"
- Next in thread: Jürgen Exner: "Re: Newbie Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 03 Jan 2005 23:59:23 +0100
John D. Sanders wrote:
> I have an Apache Web Server running and I want to use Perl as my CGI
> language.
>
> I have Matt's FormMail script running
Exchange it for http://nms-cgi.sourceforge.net/scripts.shtml
> properly but when I try to
> implement my own scripts I get an error.
>
> The script I am using for testing:
> #! /usr/bin/perl
>
> use warnings;
> use strict;
>
> print "content-type: text/html\n\n";
> print "<html><head><title> Current Date and Time </title>";
> print "</head>\n<body>";
> print scalar( localtime() );
> print "</body></html>";
>
>
> The error I get when executing www.lovinthelord.org/cgi-bin/testing.pl:
>
> Internal Server Error
<snip>
- Are you sure that the path to perl is correct?
- Did you upload the script in ASCII mode?
- Did you set the right permissions (probably 755)?
If that doesn't help:
http://faq.perl.org/perlfaq9.html#My_CGI_script_runs_f
-- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl
- Next message: PerlFAQ Server: "FAQ 8.32: How can I write expect in Perl?"
- Previous message: John D. Sanders: "Re: Newbie Question"
- In reply to: John D. Sanders: "Newbie Question"
- Next in thread: Jürgen Exner: "Re: Newbie Question"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|