Debian Sarge mod_perl Apache 1.3

Debian Sarge mod_perl Apache 1.3

am 19.07.2005 22:51:58 von Debian User

Hi,
I try to set up apache and mod_perl, I added the location tag in
httpd.conf and all that comes with it but when I try the URI of a pl file,
my browser ask me if I want to save it: apache seems to not recognize the
pl file as a perl script...
Any idea?

Re: Debian Sarge mod_perl Apache 1.3

am 20.07.2005 00:04:31 von Stephen Patterson

On Tue, 19 Jul 2005 22:51:58 +0200, Debian User wrote:
> Hi,
> I try to set up apache and mod_perl, I added the location tag in
> httpd.conf and all that comes with it but when I try the URI of a pl file,
> my browser ask me if I want to save it: apache seems to not recognize the
> pl file as a perl script...

Well, this is from my httpd.conf (sarge, apache 1.3). Uses mod-perl
for anything in /mod-perl and any other files ending in .pl
LoadModule perl_module /usr/lib/apache/1.3/mod_perl.so


Alias /mod-perl/ /home/httpd/mod-perl/


SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI


SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI



--
Stephen Patterson steve@patter.mine.nu http://patter.mine.nu/ GPG: E3E8E974
Jabber: patter on jabber.earth.li MSN: stephenpatterson893@hotmail.com
"Whoever said nothing is impossible never tried slamming a revolving door."
-- Melissa O'Brien

Re: Debian Sarge mod_perl Apache 1.3

am 20.07.2005 00:07:52 von Eric Schwartz

Debian User writes:
> I try to set up apache and mod_perl, I added the location tag in
> httpd.conf and all that comes with it but when I try the URI of a pl file,
> my browser ask me if I want to save it: apache seems to not recognize the
> pl file as a perl script...
> Any idea?

Please post the relevant portions of your httpd.conf (NOT the whole
thing, please!), so we can see what you've tried so far. "the
location tag... and all that comes with it" is not enough information
(for me anyway) to diagnose the problem.

-=Eric

Re: Debian Sarge mod_perl Apache 1.3

am 20.07.2005 09:44:35 von test

What you extract from your httpd.conf is what I have in mine except the
FilesMatch "\.pl$" section, I'll try to add it this evening...
For information I also add a line like "AddApplication
application/x-perl-program .py" or something like that like for
php handling but I don't know if it s a good thing...

To resume the situation:

In modules.conf
LoadModule perl_module /usr/lib/apache/1.3/mod_perl.so

In httpd.conf
PerlRequire /home/httpd/perl/startup.pl

Alias /perl/ /home/httpd/perl/


SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
PerlSendHeader On


On Tue, 19 Jul 2005 22:04:31 +0000, Stephen Patterson wrote:

> On Tue, 19 Jul 2005 22:51:58 +0200, Debian User wrote:
>> Hi,
>> I try to set up apache and mod_perl, I added the location tag in
>> httpd.conf and all that comes with it but when I try the URI of a pl file,
>> my browser ask me if I want to save it: apache seems to not recognize the
>> pl file as a perl script...
>
> Well, this is from my httpd.conf (sarge, apache 1.3). Uses mod-perl
> for anything in /mod-perl and any other files ending in .pl
> LoadModule perl_module /usr/lib/apache/1.3/mod_perl.so
>
>
> Alias /mod-perl/ /home/httpd/mod-perl/
>

>
> SetHandler perl-script
> PerlHandler Apache::Registry
> Options +ExecCGI
>

>
> SetHandler perl-script
> PerlHandler Apache::Registry
> Options +ExecCGI
>

Re: Debian Sarge mod_perl Apache 1.3

am 20.07.2005 22:43:42 von Debian User

I move the part concerning Perl to another part of the httpd.conf
and added the FilesMatch section then it works!! Thanks

On Tue, 19 Jul 2005 22:04:31 +0000, Stephen Patterson wrote:

> On Tue, 19 Jul 2005 22:51:58 +0200, Debian User wrote:
>> Hi,
>> I try to set up apache and mod_perl, I added the location tag in
>> httpd.conf and all that comes with it but when I try the URI of a pl file,
>> my browser ask me if I want to save it: apache seems to not recognize the
>> pl file as a perl script...
>
> Well, this is from my httpd.conf (sarge, apache 1.3). Uses mod-perl
> for anything in /mod-perl and any other files ending in .pl
> LoadModule perl_module /usr/lib/apache/1.3/mod_perl.so
>
>
> Alias /mod-perl/ /home/httpd/mod-perl/
>

>
> SetHandler perl-script
> PerlHandler Apache::Registry
> Options +ExecCGI
>

>
> SetHandler perl-script
> PerlHandler Apache::Registry
> Options +ExecCGI
>