List Info

Thread: Testing Perl Locally?




Testing Perl Locally?
country flaguser name
United States
2007-08-01 14:29:38

I've installed Perl on my computer (which is not a server). I can run
Perl at DOS prompt only. When I use IE or Firefox to access Perl
scripts, the browsers will display the script content (or ask me to
download the file). Is there a way around this? Thank you.

__._,_.___
.

__,_._,___
Re: Testing Perl Locally?
country flaguser name
United States
2007-08-01 17:30:16

--- In Perl_Official%40yahoogroups.com">Perl_Officialyahoogroups.com, youwenjia <no_reply...> wrote:
&gt;
> I've installed Perl on my computer (which is not a server). I can run
> Perl at DOS prompt only. When I use IE or Firefox to access Perl
>; scripts, the browsers will display the script content (or ask me to
> download the file). Is there a way around this? Thank you.
>;

1) You said it's not a server so I'm assuming Apache is nowhere to be
found.

2) I had that problem with my scripts even with Apache installed. I
had to play around with the .htaccess file. It wasn't set to execute
CGI (which is what I usually work on). Also I think I remember having
to play around with httpd.conf so the server would know what to do
with .pl, .php and .cgi scripts.

After I got everything just right I burned an image of my HD to DVD
and haven't had to do it in a while so I may be mistaken on the details.

I'm nowhere near an expert but I thought I'd put my 2 cents in.

T.

__._,_.___
Recent Activity
Visit Your Group
SPONSORED LINKS
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Yoga Resources

on Yahoo! Groups

Take the stress

out of your life.

Re: Testing Perl Locally?
country flaguser name
Canada
2007-08-01 15:53:15

youwenjia wrote:
&gt; I've installed Perl on my computer (which is not a server). I can run
> Perl at DOS prompt only. When I use IE or Firefox to access Perl
>; scripts, the browsers will display the script content (or ask me to
> download the file). Is there a way around this? Thank you.

Yes. Install a web server on your machine and configure it to run your CGIs.

--
Just my 0.00000002 million dollars worth,
Shawn

"For the things we have to learn before we can do them, we learn by doing them.";
Aristotle

__._,_.___
.

__,_._,___
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )