Questions tagged [mod-perl2]

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.

162 questions
20
votes
3 answers

PSGI: What is it and what's the fuss about?

I have been trying to decide if my web project is a candidate for implementation using PSGI, but I don't really see what good it would do for my application at this stage. I don't really understand all the fuss. To me PSGI seems like a framework…
Joakim
  • 510
  • 4
  • 10
20
votes
8 answers

What Perl RESTful framework do you recommend?

Hi I'm looking for a Perl RESTful framework that have to : work under apache2/mod_perl2 be simple be elegant be light be flexible Am I just dreaming or can I avoid the 'Roll our own' approach? What framework would you recommend?
jeje
  • 3,191
  • 3
  • 26
  • 41
14
votes
1 answer

Close response under mod_perl 2

I'm trying to find out if there's a way to complete a response under mod_perl 2 without returning to the main handler. Haven't been able to find a method for that in the docs so far. The following is an example of what I'm trying to…
Francisco Zarabozo
  • 3,676
  • 2
  • 28
  • 54
14
votes
1 answer

How can I run Devel::Cover under mod_perl2?

Unfortunately, Devel::Cover does not yet work with threads. It doesn't work with prefork either. Being use'd in startup.pl, Devel::Cover issues Not a CODE reference. END failed--call queue aborted. perl 5.8.9, Apache 2.2.13. My OS is FreeBSD, if…
codeholic
  • 5,680
  • 3
  • 23
  • 43
9
votes
4 answers

Upgrade Perl from 5.6 to 5.24

We are currently using 5.6 version of Perl in our organisation, along with MySQL and Apache, but now the client wants to upgrade Perl to v5.24. What are all the major changes and key points that must be kept in mind before starting an upgrade? I…
user2659500
  • 93
  • 1
  • 6
8
votes
1 answer

How to send a custom http status code with mod_perl

I have written a CGI program and I send a status error with the HTTP header to the client. but when I tried to use mod_perl it only responds with 200 ok status. How can I send a custom status code? here is the code when I want to respond with the…
Sarah Aziziyan
  • 498
  • 9
  • 22
8
votes
1 answer

in perl how to write to caller's variable without using XS?

I'm writing unit tests around some old code, and find the need to write a mock around Apache2::Request's read() method my $r = Apache2::Request->new(...); $r->read(my $buf, $len); Is there a way to write a function in Perl to populate $buf? I'm…
Kevin G.
  • 1,424
  • 1
  • 13
  • 22
7
votes
3 answers

How do I fork properly with mod_perl2?

I'm having trouble forking a long-running process from some code running under mod_perl2. Everything works for the most part, but it seems that the forked process is holding open handles to Apache's logfiles - this means Apache won't restart while…
Dan
  • 61,568
  • 9
  • 61
  • 78
7
votes
1 answer

binmode + mod_perl 2.0.5 + Parse::RecDescent = segmentaion fault

Important update: the problem is nothing to do with Apache or mod_perl. The easiest demonstration: > perl -le 'use PerlIO::via::QuotedPrint; binmode(\*STDERR, ":via(PerlIO::via::QuotedPrint):utf8"); open (ERROR, ">&STDERR");' zsh: segmentation…
Hln
  • 749
  • 5
  • 15
6
votes
2 answers

Modify POST request in mod_perl2

Does anyone know how to access/modify the POST request data using mod_perl2. IN GET method one can get/set the request QUERY string: $args = $r->args(); $prev_args = $r->args($new_args); How to get/set the request QUERY string in POST…
user372001
  • 61
  • 2
6
votes
1 answer

Is mod_perl dead?

It's been a long while since mod_perl was really updated and seems like its development stoped at Apache 2.2. I've been waiting for it to become available for Apache 2.4 for now a very long while, but that hasn't happened yet. I've been trying to…
Francisco Zarabozo
  • 3,676
  • 2
  • 28
  • 54
6
votes
4 answers

IPC::Open3 Fails Running Under Apache

I have a module that uses IPC::Open3 (or IPC::Open2, both exhibit this problem) to call an external binary (bogofilter in this case) and feed it some input via the child-input filehandle, then reads the result from the child-output handle. The code…
rjray
  • 5,525
  • 4
  • 31
  • 37
6
votes
2 answers

Moving from CGI to mod_perl. Understanding my, our, local

I've been using apache mod_cgi during some years. Now I am moving to mod_perl and I have found some problems, specially with subroutines. Until now I was never using my, our nor local; and the CGI scripts worked without problems. After reading…
Zillo
  • 91
  • 5
6
votes
3 answers

Installing mod_perl-2.0.7 on Apache httpd-2.4.2

I am having an infuriating time trying to get an install of apache with perl. I am following the instructions on the mod_perl site located here: http://perl.apache.org/docs/2.0/user/install/install.html I get as far as the part where it asks me to…
kand
  • 2,268
  • 6
  • 31
  • 43
6
votes
1 answer

I cannot get Apache::VMonitor working in Apache2

I am moving from Apache 1.3 to Apache 2.063 and am having trouble getting Apache::VMonitor working. I tried a setup like this, similar to how I had it setup in my old Apache: use Apache::VMonitor(); $Apache::VMonitor::Config{BLINKING} =…
gpojd
  • 22,558
  • 8
  • 42
  • 71
1
2 3
10 11