Apache offers to download the perl script rather than execute it!

2007-11-20 Thread michael watson (IAH-C)
Hi I am sure this is an age old problem, and one I have had before, but I cannot find how to solve it. My set up from error_log: [Tue Nov 20 14:07:53 2007] [notice] Apache/2.2.4 (Unix) PHP/5.2.1 mod_perl/2.0.3 Perl/v5.8.5 configured -- resuming normal operations In httpd.conf: PerlModule M

Re: Apache offers to download the perl script rather than execute it!

2007-11-20 Thread Tobias Regneri
Hi, > SetHandler perl-script I think it's only a missing file type SetHandler perl-script .pl Hth, Tobias

RE: Apache offers to download the perl script rather than execute it!

2007-11-20 Thread michael watson (IAH-C)
perl@perl.apache.org Subject: Re: Apache offers to download the perl script rather than execute it! Hi, > SetHandler perl-script I think it's only a missing file type SetHandler perl-script .pl Hth, Tobias

Re: Apache offers to download the perl script rather than execute it!

2007-11-20 Thread Jonathan Vanasco
What does it download? print "Content-type: text/plain\n\n"; print "Mod Perl 2 Rocks\n"; or Mod Perl 2 Rocks ?

Re: Apache offers to download the perl script rather than execute it!

2007-11-20 Thread Roberto C . Sánchez
On Tue, Nov 20, 2007 at 03:36:55PM +0100, Tobias Regneri wrote: > Hi, > > > SetHandler perl-script > > I think it's only a missing file type > > SetHandler perl-script .pl > Actually, since he specified it inside of a Location block, it will apply the handler to everything in that locat

Re: Apache offers to download the perl script rather than execute it!

2007-11-20 Thread Roberto C . Sánchez
On Tue, Nov 20, 2007 at 02:22:32PM -, michael watson (IAH-C) wrote: > > When I go to http://localhost/perl/rock.pl, Internet Explorer asks me if > I want to download or open the file. > > Help? > Umm, what do the error and access logs say? Regards, -Roberto P.S. Any chance you can get ri