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.
2
votes
0answers
34 views
How do I single sign on between Bugzilla and Node.js?
Bugzilla runs behind the Apache webserver (mod_perl2) and stores the users in MySQL database. Node.js is it's own webserver. How do I single sign on the user in the Node.js app using the user data ...
2
votes
0answers
44 views
How can I both get raw post data and use Apache2::Request to access parameters?
Apache2::Request doesn't seem to provide a way to get the raw post data; is there one that I am missing?
Alternatively, is there a way to read the post data separately (in a content handler - nothing ...
1
vote
2answers
73 views
mod_perl and multiple virtual hosts
We have this situation:
- Apache running mod_perl
- Multiple virtual hosts with own directories
- Each virtual module has the same name for perl modules (development hosts, module differ a little bit, ...
1
vote
3answers
110 views
Where can I find code profiling and/or code coverage modules that work with mod_perl2?
Is there a way to get this functionality under mod_perl2?
And can it be triggered via web requests as opposed to the command line? Or do I need to fake whatever $ENV variables and query strings and ...
1
vote
1answer
28 views
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 ...
15
votes
8answers
6k views
What Perl RESTful framework do you recommend? [closed]
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?
...
0
votes
1answer
107 views
Error while loading mod_perl.so
I have installed perl-5.8.9, mod_perl-2.0.7, Embperl-2.3.0 and httpd-2.2.22. And while starting apache, I get the error like the following (broken into multiple lines for readability):
httpd: Syntax ...
0
votes
0answers
11 views
apache mod_perl : dynamic handler based on url
My requirement is as below.
if the requested url is like
http://localhost/mod_perl/TopModule/ActualModule/method1
Then I should call TopModule::ActualModule->method1 ()
How can I configure ...
1
vote
1answer
68 views
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 ...
2
votes
3answers
460 views
How to suppress the default mod_perl error page in legacy CGI script using ModPerl::Registry
I have a CGI script in Perl that generates HTTP error pages by itself. I am running it under mod_perl via ModPerl::Registry, using the following Apache2 configuration:
Alias /perl "/var/www/perl"
...
1
vote
2answers
66 views
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 ...
2
votes
1answer
51 views
How can one see all warnings under mod_perl
How can I make sure that I see all of Perl's warning and error messages when running a script under mod_perl? (Apache/2.2.16 (Debian) [...] mod_perl/2.0.4 Perl/v5.10.1)
I feel like I have done ...
0
votes
2answers
329 views
Set-Cookie then redirect working under perl CGI, but not mod_perl
I've got a funny problem with setting a cookie and then redirecting under mod_perl. I've had a regular cgi environment up until now, and the set cookie/redirect has never been an issue; everything has ...
0
votes
2answers
99 views
Serving up images under mod_perl using file::copy fails
I have a CGI script that serves up images using the File::Copy CPAN module:
use File::Copy;
.... (set appropriate content header)
binmode STDOUT;
copy $imageFile, \*STDOUT || die "Image delivery ...
5
votes
2answers
247 views
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 ...