mod-perl is an Apache 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-perl]
350 questions
21
votes
9 answers
The future of Perl? (Perl 6, employability)
I've found a few related questions, like Python vs. Perl (now deleted) and Is Perl Worth it? (now deleted), but I can't seem to find anything that directly addresses this question.
Is there a legitimate future in Perl? I work in a Perl shop right…

NateDSaint
- 1,524
- 2
- 16
- 35
19
votes
6 answers
Is there a difference between apache module vs cgi (concerning security)?
E.g. Is it more secure to use mod_php instead of php-cgi?
Or is it more secure to use mod_perl instead of traditional cgi-scripts?
I'm mainly interested in security concerns, but speed might be an issue if there are significant differences.

Sarien
- 6,647
- 6
- 35
- 55
15
votes
3 answers
mod_perl vs mod_fastcgi
I'm developing a web app in Perl with some C as necessary for some heavy duty number crunching. The main problem I'm having so far is trying to decide if I should use mod-perl, mod-fastcgi or both to run my scripts because I'm having a difficult…

gvkv
- 1,894
- 2
- 22
- 34
15
votes
3 answers
What criteria should I use to evaluate a Perl "app server" (mod_perl replacement)?
Short version:
What criteria should I use to evaluate possible candidates for a Perl "app server" (mod_perl replacement)?
We are looking for some sort of framework which will allow executing various Perl programs repeatedly (as a service) without…

DVK
- 126,886
- 32
- 213
- 327
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
12
votes
3 answers
File download results in "IE was not able to open this internet site"
I'm at a loss for this one. I've looked all over and there seem to be a lot of solutions, but they aren't working for me. I've got a CGI::Application app generating a MS Excel spreadsheet with Spreadsheet::WriteExcel. This worked fine for quite…

wes
- 7,795
- 6
- 31
- 41
12
votes
2 answers
Perl Connection Pooling
Right now we have a large perl application that is using raw DBI to connect to MySQL and execute SQL statements. It creates a connection each time and terminates. Were starting to approach mysql's connection limit (200 at once)
It looks like…

bonez
- 685
- 1
- 16
- 39
12
votes
1 answer
Why is Perl 5.14 using (0+GvGP(gv)->gp_cv) definition for GvGC?
I'm doing some kind of research related to mod_perl-Apache-Perl compatibility. Recently I tried to build mod_perl 2.0.4 using Perl 5.14.2. The compilation phase was terminated prematurely with an error:
modperl_perl.c: In function…

ArtMat
- 2,110
- 12
- 24
11
votes
1 answer
SSO - Get the AD Username with Apache
I have PHP 5.6.17 and Apache 2.4.10 running on Debian 8.
I want to populate the PHP variable $_SERVER['REMOTE_USER'] with the Windows username, to log in the user if the username is in my database. I'm comfortable with the security risks involved in…

BastienSander
- 1,718
- 4
- 24
- 50
11
votes
4 answers
How to install mod_perl 2.0.9 in Apache 2.4 on OS X Yosemite?
With the release of OS X 10.10 Yosemite, Apple upgraded its Apache server to version 2.4.
At release time, mod_perl 2.0.8 was incompatible with Apache 2.4, and mod_perl 2.0.9 had not yet been officially released (more info).
So, Apache was included…

Andy Swift
- 2,179
- 3
- 32
- 53
9
votes
3 answers
Can't locate loadable object for module main in @INC
In a mod_perl application running on ubuntu 16.04 after a certain while where everything functions fine (a few days) we get a fatal message in the errorlog:
failed to resolve handler MyHandler::ModPerl20 Can't locate loadable object for module main…

Georg Mavridis
- 2,312
- 1
- 15
- 23
9
votes
6 answers
How can I execute inefficient code only at compile time when using mod_perl?
I've been benchmarking the performance of a framework I'm writing in Perl and I'm getting a 50% decrease in requests per second over our existing codebase (some hit is understandable, because we're going from procedural spaghetti code to an OOP MVC…

David McLaughlin
- 5,108
- 4
- 34
- 35
8
votes
2 answers
Can Perl's Log::Log4perl's log levels be changed dynamically without updating config?
I have a Mason template running under mod_perl, which is using Log::Log4perl.
I want to change the log level of a particular appender, but changing the config is too awkward, as it would have to pass through our deployment process to go live.
Is…

Will Sheppard
- 3,272
- 2
- 31
- 41
8
votes
3 answers
How do I use the debugger with mod_perl
I'm trying to attach the Perl debugger to Apache and mod_perl. Our
environment is quite complex (lots of additional stuff (eg Catalyst)
configured with Apache) and the engineers who configured it are no
longer with the company. I've followed the…

Leonard
- 13,269
- 9
- 45
- 72
8
votes
3 answers
How do I make Apache handle .pl (Perl) files, using mod_perl?
I'm using Apache 2. I know how to handle .pl files as "cgi-script", but mod_perl is supposedly way faster. I successfully built and installed mod_perl, but how do I change httpd.conf so that .pl files will be handled by mod_perl (and not as…
Interbitter