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
1
vote
1 answer

Authentication Module Issues with Apache 2 and Perl

I am SharePoint Developer trying to get a Perl module to work with Subversion, but I think something is wrong with my syntax. I just need to get the username and password, pass it into the webservice, get a true/false and authenticate based on that…
MOSSLover
  • 11
  • 2
1
vote
0 answers

Best way to run module initialization code from mod_perl2 for every new HTTP request?

I have "inherited" a web server that has about 200 cgi scripts, all of them written in perl. One of my tasks is converting them to run unter mod_perl2, without losing CGI runnability. Now, there are about 10 perl modules, each of which is used from…
Guntram Blohm
  • 9,667
  • 2
  • 24
  • 31
1
vote
1 answer

Mod Perl in ubuntu

I am trying to configure apache2 running on ubunutu 12.04 to run perl script. But the script is not running when i submit the get request from the client. Below is the default config i have made (after reading in internet):
Suresh
  • 153
  • 2
  • 2
  • 9
1
vote
0 answers

mod perl configuration not working

I am trying to execute perl script from virtual host file in apache2 running on Ubuntu. I am trying to redirect the URL to perl script as show below, but, I am getting forbidden error when I tried http://xx.xx.xxx.xx/somefile.nff I have set the…
Suresh
  • 153
  • 2
  • 2
  • 9
1
vote
0 answers

Using require() for templating in mod_perl2

I have a couple files that are similar and I want them both to require a third file in which I can keep the commonalities. The third file, however, needs to make use of the variables declared in the first two files. If I understand correctly, I…
Kev
  • 15,899
  • 15
  • 79
  • 112
1
vote
1 answer

Can not install Apache2::Const module

I have installed Apache 2.2.25 with mod_perl 2.0.7 running on Debian 7.1.0. During its installation mod_perl had to install module named Apache2::Const, but it didn't. mod_perl have installed modules from the same group, e.g. Apache2::Access,…
1
vote
1 answer

Write a simple mod_perl handler

I want to write a simple mod_perl handler which returns the local time like described on this page (http://perl.apache.org/docs/2.0/user/handlers/intro.html), but where have I to locate this file to access it. I'm using Ubuntu but don't have a…
atticus3000
  • 409
  • 1
  • 4
  • 12
1
vote
1 answer

mod_perl use request input properties in output? pnote?

Using mod_perl2, I'm trying to access the request args e.g. $r->args() in an output filter. Is it possible? I considered using pnotes however if i store the pnote reference against the request ($r) how do I retrieve it in the output filter? It…
noddy
  • 185
  • 1
  • 10
1
vote
1 answer

How to pass environment variable to an AutoLoaded mod_perl handler, to be used at module load time?

I have a HTTP Request Handler for mod_perl which needs to read an environment variable, from %ENV, at module load time. The environment variable is passed from the Apache config into mod_perl using the PerlSetEnv directive. This worked fine, until…
Day
  • 9,465
  • 6
  • 57
  • 93
1
vote
1 answer

How do I configure PerlSections in mod_perl2?

I'm trying to use a [PerlSection][1] to get the server name and then use it to configure some RewriteCond-RewriteRule pairs and some other things. It seems I can't get very far. It says you can do this: Apache2->httpd_conf("PerlPassEnv $key…
Kev
  • 15,899
  • 15
  • 79
  • 112
1
vote
2 answers

HTML::FormHandler slow in Catalyst with mod_perl

I'm using HTML::FormHandler with my mod_perl/Catalyst app to generate a form for my users. It works fine, the only problem is that it slows down page load time by a lot. Here is my subroutine that creates the new form: sub edit : Chained('base')…
srchulo
  • 5,143
  • 4
  • 43
  • 72
1
vote
2 answers

Why Apache PerlModule directive doesn't set custom environment variables?

I am building a mod_perl website, and I need to set an environment variable that will be used in the Perl code. Until now I was using the PerlSetEnv directive to set this variable: PerlSetEnv MYVAR myvalue
Michael Mera
  • 108
  • 7
1
vote
2 answers

Is there a mod_perl2/Perl 5 equivalent to PHP's ignore_user_abort()?

I'm writing an internal service that needs to touch a mod_perl2 instance for a long-running-process. The job is fired from a HTTP POST, and them mod_perl handler picks it up and does the work. It could take a long time, and is ready to be handled…
Justin
  • 5,029
  • 1
  • 21
  • 21
1
vote
1 answer

Creating new database handles with mod_perl

I've run into an issue when stress testing mod_perl that the database connections are going away. I suspect that processes are sharing database connections, causing the issue. But I've followed all instructions for Apache::DBI, and can't figure this…
lschult2
  • 588
  • 2
  • 5
  • 16
1
vote
1 answer

Apache children hanging / mod perl

The apache children on my server (ubuntu 12.04 upgraded from 11.10, apache 2.2.22, perl 5.14.2, mod_perl 2.0.5) are hanging. I tried to catch signals usr2, and alarm but without success (when using sleep for testing, it works like excpected but when…
key_
  • 577
  • 4
  • 15