Re: PERL not working.

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ (text/plain)
Delete this message
Reply to this message
Author: keith smith
Date:  
To: Main PLUG discussion list
Subject: Re: PERL not working.
Thanks I got it working.


------------------------
Keith Smith



--- On Sat, 8/9/08, Dan Lund <> wrote:
From: Dan Lund <>
Subject: Re: PERL not working.
To: "Main PLUG discussion list" <>
Date: Saturday, August 9, 2008, 7:35 PM

Apache just isn't configured to catch .pl extensions and translate
them through the Perl interpreter.
I haven't actually done this work (aside from installing mod_perl,
making sure the module is loaded and making sure .pl is interpreted)
so that's the best I can do right now.

Just to test the script, you can do "perl scriptname.pl" from the
commandline to see the output.

Thanks,
Dan Lund
It is necessary for him who lays out a state and arranges laws for it
to presuppose that all men are evil and that they are always going to
act according to the wickedness of their spirits whenever they have
free scope.
-Niccolo Machiavelli



On Sat, Aug 9, 2008 at 5:04 PM, keith smith <>
wrote:
>
> Hi,
>
> I am running Fedora 5. PHP and MySql are working fine however I cannot

run
> a test PERL program.
>
> I changed the file permissions to 755 and did a "which perl"

which shows
> /usr/bin/perl.
>
> The test file:
>
> #!/usr/bin/perl
> print "Content-type: text/html\n\n";
> print "Hello, world!\n";
>
> When I call it up in a browser I see the source. I used the extension of
> cgi and pl.
>
> Could the PERL not be working? How can I test that PERL is functioning?
>
> Thanks in advance for your help!
>
> ------------------------
> Keith Smith
>

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss



---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss