mod-perl2 is an Apache2 web server module. The module improves the performance of Perl CGI scripts. Scripts are loaded into memory on the first invocation and added to the Apache process. On each subsequent invocation the script is run directly with no need for loading and parsing.
Questions tagged [mod-perl2]
162 questions
0
votes
1 answer
CGI::escapeHTML() doesn't work
I am new to CGI, my code output:
Hello, "
Tom Cat
"! Seems the escapeHTML() doesn't work. I develope my cgi code with XAMPP 1.7.2 on winxp. How can I fix it. Do I need download & install extra CGI Plugin for the current XAMPP? Appreciated…
Nano HE
- 1,879
- 7
- 28
- 39
0
votes
1 answer
CGI script runned with ModPerl::Registry doesn't print result on html page, just download it
Here is my sandbox https://github.com/pavelsr/mod_perl_sandbox
When I make docker-compose up then go to http://localhost:3000/env.pl resulted html is downloaded, not served.
Under CGI mode (with removed -DMODPERL in docker-compose) everything works…

Paul Serikov
- 2,550
- 2
- 21
- 36
0
votes
1 answer
Apache addon perl script for obtaining subdomain from a wildcard
I had an issue regarding this which I've manage to fix to this stage, but the only issue is finding out how this could be achieved by perl.
This is a current structure of a link:
http://username.mydomain.com/public/name
And this is the current…

shauny
- 29
- 1
- 9
0
votes
1 answer
XAMPP 5.6.34 for Windows 2012 R2 how to get Apache::ASP working
I am working on a previous version of XAMPP that someone else built, I'm updating it to the following version in a separate directory, but the new installation doesn't seem to have mod_perl which I think is needed for Apache::ASP.
XAMPP 5.6.34 for…

mytwocents
- 847
- 17
- 29
0
votes
2 answers
ModPerl::RegistryPrefork should make my old cgi work but
I developped a web app under CGI.pm.I'd like to switch to mod_perl2.
My webapp worked under CGI but when i tried to change the mod, it's not working anymore while I didn't change anything in the webapp ,except the apache conf files to run under…

MICADO
- 1
0
votes
2 answers
IO write: (32) Broken pipe in Apache 2.4
We have just moved our site to a new server, and keep seeing this error message:
[Tue Nov 07 14:57:08.796821 2017] [:error] [pid 1777] :Apache2 IO write: (32) Broken pipe at…

Andrew Newby
- 4,941
- 6
- 40
- 81
0
votes
1 answer
Apache mod_perl2 migration problem
I have an apache2 config file under /etc/init.d/apache2/conf.d/ which uses Perl Sections.
I am just trying to test if a module is loaded and configure apache as appropriate.
if( Apache->module( "mod_ssl.c" ) )
{
...
} else { ... }
This is the…

Jeff
- 103
- 9
0
votes
1 answer
filter is not working as expected
It's about mod_perl2 filter.
Ideally a job of filter is to do something with input data & pass on the data to next filter or actual requested resource.
In my case, I've a PerlInputFilterHandler defined for a URL pattern. See below location…

keeping_it_simple
- 439
- 1
- 11
- 31
0
votes
1 answer
error in generating response from PerlInputFilterHandler
I just have one filter in my location tag of httpd.conf:
SetHandler modperl
PerlInputFilterHandler MyApache2::Test
Test is an PerlInputFilterHandler.
If I've following code in this filter:
package…

keeping_it_simple
- 439
- 1
- 11
- 31
0
votes
1 answer
PerlInputFilterHandler is calling itself again and again
It's related to mod_perl.
I just have one filter specified in my location tag.
SetHandler modperl
PerlInputFilterHandler MyApache2::Test3
Here, when I hit http://localhost/testproj/AServlet URL in browser.…

keeping_it_simple
- 439
- 1
- 11
- 31
0
votes
3 answers
Strange Apache2::Cookie error under Strawberry Perl and mod_perl2
I have a set of scripts that run under ActivePerl 5.10. However, under Strawberry Perl 5.10, I get a strange error message:
Can't locate object method "cookie_class" via package "MyCookie" (perhaps you forgot to load "MyCookie"?) at…

Kev
- 15,899
- 15
- 79
- 112
0
votes
2 answers
Strawberry Perl with mod_perl2: building Apache2 modules from CPAN
I have Strawberry Perl 5.10 and mod_perl2 installed per these instructions on the mod_perl mailing list without a problem. However, trying to install various Apache2:: modules that my scripts use result in errors. One (Apache2::Reload) I was able…

Kev
- 15,899
- 15
- 79
- 112
0
votes
4 answers
Error when installing mod_perl2
I am trying to install mod_perl2 with below configuration: OS: CentOS release 5.5 (Final) Uname -a result: x86_64 x86_64 x86_64 GNU/Linux Perl version: v5.8.8 built for x86_64-linux-thread-multi apache version: Apache/2.2.3 I have downloaded…

Ganesh
- 505
- 2
- 9
- 26
0
votes
1 answer
Proc::Daemon with mod_perl does not write STDOUT or STDERR
I have am using Proc::Daemon in a mod_perl script thusly:
$bindir, $ddir are executable/logfile locations and $jid is a unique per process identifier (to avoid having the same file open by multiple processes). $cmd is loaded with arbitrary perl…

Severun
- 2,893
- 1
- 16
- 22
0
votes
1 answer
Does Devel::Cover work under mod_perl2 on Perl 5.10 for Windows?
The mod_perl2 and Perl 5.10 two are playing nicely together, but I can't seem to find any positive information about Devel::Cover working with mod_perl2 under Win32. I'm currently using ActiveState's Perl 5.10, but I would be open to switching to…

Kev
- 15,899
- 15
- 79
- 112