develooper Front page | perl.perl5.porters | Postings from February 2020

Re: Fwd: Re: mod_perl, compilation issues, cont

Thread Previous
From:
Steve Hay via perl5-porters
Date:
February 6, 2020 08:39
Subject:
Re: Fwd: Re: mod_perl, compilation issues, cont
Message ID:
CADED=K5xDVXpr6ATsZK96yzbURARsqYtQ=oO2+yreH-DtihFPQ@mail.gmail.com
On Wed, 5 Feb 2020 at 15:36, André Warnier (tomcat/perl) <aw@ice-sa.com>
wrote:

> Hi.
>
> (please let me know if this is the right place to post this. I was using
> the mod_perl list
> before, without much success, but I could go back there).
>
> Update on the issue below :
>
> I installed a brand-new vanilla Windows 10 VM to test this further.
> On this new VM, I installed
> - Apache httpd 2.4.41 (from ApacheLounge )
> - strawberry perl 5.18.4 (from zip :  strawberry-perl-5.18.4.1-64bit.zip)
> - then mod_perl2, using Steve Hay's
> mod_perl-2.0.8-strawberryperl-5.18.1.1-64bit.zip
>
> Under that combination I do not see the problem below.
> (Note : I used the above versions first, because I have another Windows
> machine (not
> Windows 10) where this works)
>
> Then I de-installed perl 5.18.4 (by deleting the whole content of
> c:\strawberry), and
> installed :
> - strawberry perl 5.28.2 (from zip : strawberry-perl-5.28.2.1-64bit.zip)
> - mod_perl2, using Steve Hay's
> mod_perl-2.0.10-strawberryperl-5.28.0.1-64bit.zip
> (just overwrote the Apache part with the new mod_perl Apache2 part)
>
> and there I see the problem below again.
>
>
Sorry for the slow reply. I have tried Apache Lounge 2.4.41 / Strawberry
Perl 5.28.2-1 and my mod_perl-2.0.10-strawberryperl-5.28.0.1-64bit.zip on
Windows 10 and it works fine for me in a simple test.

I configured with:

LoadFile C:/Strawberry/perl/bin/perl528.dll
LoadModule perl_module modules/mod_perl.so
<IfModule perl_module>
    <Location /perltest>
        SetHandler perl-script
        PerlResponseHandler PerlTest
    </Location>
</IfModule>

where PerlTest.pm contains:

package PerlTest;
use strict;
use warnings;
use Apache2::Const -compile => qw(OK);
use Apache2::RequestIO qw();
use Apache2::RequestRec qw();
sub handler : method {
  my($class, $r) = @_;
  $r->content_type('text/plain');
  $r->print('Hello, world');

  return Apache2::Const::OK;
}
1;

and accessing /perltest produces the expected 'Hello, world.' output.

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About