Re: Newbie Question

From: Gunnar Hjalmarsson (noreply_at_gunnar.cc)
Date: 01/03/05


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


Relevant Pages

  • Re: Newbie Question
    ... > I have an Apache Web Server running and I want to use Perl as my CGI ... > I have Matt's FormMail script running ...
    (comp.lang.perl.modules)
  • Re: Newbie Question
    ... > I have an Apache Web Server running and I want to use Perl as my CGI ... this is an apache configuration matter, ...
    (comp.lang.perl.modules)
  • Re: Using perl to parse specific lines by date...
    ... > was trying to figure out how I can do the same thing in perl. ... > I have an access_log from my apache web server and while I can manually ... > Script I'm using. ...
    (perl.beginners)
  • 2005-11-20 [de.comp.lang.perl.cgi] FAQ
    ... Programmiersprache Perl in CGI-Scripten. ... Wo gibt es Dokumentation über Perl und CGI? ... Hilfe zum Programm perldoc kann man mit 'perldoc perldoc' ... Mein Script läuft nicht bei meinem Provider. ...
    (de.comp.lang.perl.cgi)
  • 2005-10-23 [de.comp.lang.perl.cgi] FAQ
    ... Programmiersprache Perl in CGI-Scripten. ... Wo gibt es Dokumentation über Perl und CGI? ... Hilfe zum Programm perldoc kann man mit 'perldoc perldoc' ... Mein Script läuft nicht bei meinem Provider. ...
    (de.comp.lang.perl.cgi)