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
1
vote
3 answers
perl: change @INC for current scope only
Modification to Perl's @INC array seems for an individual scope very confusing. I would like some clarification, as it seems to be fighting any means of dynamic initialization of objects.
One would think that I could define it as local to solve this…

steve
- 290
- 1
- 11
1
vote
0 answers
Why does "print" cause a Segmentation fault error in Apache2?
The print method of Apache2::RequestIO constantly causes a Segamentation fault on my machine. I have a snippet readCookie.pm simple enough:
package readCookie;
use Apache2::Const -compile => 'OK';
sub handler{
my $r = shift;
…

leo
- 357
- 2
- 15
1
vote
1 answer
DBD::Oracle, Cursors and Environment under mod_perl
Need some help, because I can't find any solution for my problems with DBD::Oracle.
So at first, this is the current situation:
We are running Apache2 with mod_perl 2.0.4 at our company
Apache web server was set up with a startup script which is…

LingLing
- 42
- 1
- 9
1
vote
0 answers
mhtml displayed as plain text in browser
I am quite new to Perl and Mason. Please excuse me if you think my question here is trivial.
There is a website that has been developed using the Mason framework. As per my knowledge, it only uses Apache, Perl (ModPerl), Mason and MySQL. I have the…

Amogh
- 11
- 1
1
vote
2 answers
How do I tell mod_perl2 to find my Perl modules?
I just installed my system with Oracle 64-bit Linux5.4 running Apache Server version: Apache/2.2.3 and mod_perl 2.
Now, I have my Perl libraries set in a specific path: /my/perl/libs and I have adjusted my httpd.conf to compensate for this (I added…

paulj3000
- 309
- 2
- 3
- 8
1
vote
1 answer
perl - processing template files to html
I am new to web programming but have experience working on perl scripts that have to do with file processing. Recently got a copy of MVC project source code. As I am trying to come to terms with template files, control & view modules, one question…

Perl_newbie
- 11
- 2
1
vote
1 answer
How do I add a directory to the perl include path from an apache config file?
I am on centos using apache and mod_perl 2, and I have a PerlRequire directive in my apache config file to specify my mod_perl startup file:
PerlRequire startup.pl
However, when I try to start apache, mod_perl cannot find startup.pl in its perl…

DavidBooth
- 101
- 1
- 9
1
vote
1 answer
Apache won't execute CGIs with Macports Perl5.8.9
I'm trying to get perl running under on my Apache 2 macports install. I'm hoping an experienced perl geek can help me out. I've...
Got Apache running just dandy. Macports installed it with perl5 placeholder and perl5.8.9.
Installed mod_perl2.
Run…

Brooks
- 2,082
- 2
- 18
- 26
1
vote
1 answer
Active State Perl - IOCP
I am thinking to use IOCP in perl in one of our network related code. Currently Active State Perl till 5.10 doesn't offer this feature? Is anyone aware of free module to use ASIO feature like IOCP in perl?
-Karthik

Kartlee
- 1,129
- 2
- 19
- 33
1
vote
1 answer
Apache as oAuth2 consumer (client)
In this question the accepted answer "very shortly" suggests the next:
The SSO module was loaded to Apache webserver which acts as a middle
layer between User and tomcat application server.
without giving any exact solution. I didn't found (yet)…

kobame
- 5,766
- 3
- 31
- 62
1
vote
0 answers
Why does GET pre-fill data trump POST data, and is there a simple way to reverse this?
In my mod_perl2 app, on one page I link to with ?form_field_name=pre_fill_value tacked onto the URI if I want to pre-fill a particular form field for the user. However, the form itself is just

Kev
- 15,899
- 15
- 79
- 112
1
vote
2 answers
Mod-perl and our variables -- does it speedup?
I am using mod-perl. I am under such a impression that our variable will not be created for every execution. i.e. If I create an hash variable as our then that varible will be created once and will remain in memory cache of apache for subsequent…

Gaurav Pant
- 4,029
- 6
- 31
- 54
1
vote
3 answers
Error while installing mod_perl2
Good Day.
I try to install mod_perl (2.0.8) on ubuntu, with Apache 2.4.7
first I run
$ perl Makefile.PL MP_APXS=$HOME/httpd/bin/apxs MP_APR_CONFIG=$HOME/httpd/bin/apr-1-config
and than
make && make test produces an errors
Connection.xs: In…

perlito
- 55
- 6
1
vote
2 answers
How can I determine PerlLogHandler performance impact?
I want to create a custom Apache2 log handler, and the template that is found on the apache site is:
#file:MyApache2/LogPerUser.pm
#---------------------------
package MyApache2::LogPerUser;
use strict;
use warnings;
use Apache2::RequestRec…

Timmy
- 12,468
- 20
- 77
- 107
1
vote
0 answers
Does DBIx::Connector address the "per process basis" limitation of Apache::DBI?
Apache::DBI's docs say:
Apache::DBI [...] has a limitation: it keeps database connections
persistent on a per process basis. [...In] a heavy loaded Web-site
where every user connects to the database with a unique userid[,
e]very server would…

Kev
- 15,899
- 15
- 79
- 112