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
0
votes
1 answer

Certain binaries run while others don't (despite ls visibility and +x) from mod_perl2 script

On Apache 2.2 on CentOS 6.4 with perl 5.10.1. I'm trying to get a remote directory listing from within a mod_perl script, which apparently (if I die qx(id)) is running as apache. But I'm not even getting as far as being able to run ssh without…
Kev
  • 15,899
  • 15
  • 79
  • 112
0
votes
2 answers

Start mod_perl handler from another perl module

How can I start a mod_perl handler (called MyCacheHandler.pm) directly from another perl module (called MyModule.pm). Because currently I'm starting the handler via a web browser, but it would be a little bit easier to call it with MyModule.
atticus3000
  • 409
  • 1
  • 4
  • 12
0
votes
1 answer

How to convert perl modules to mod_perl handlers?

I have some perl modules which are intergreted in a cgi script which runs on a web server. How can I simply convert these modules to a mod_perl handler? Thanks.
atticus3000
  • 409
  • 1
  • 4
  • 12
0
votes
1 answer

mod_perl and how to install missing libraries

i need your help because I need to migrate a Perl application, which appears to be based on something like a CMS called "Profile Manager Premium 4.0". The problem is, i'm trying to use an .htaccess file in order to configure the mod_perl module…
digfish
  • 316
  • 2
  • 11
0
votes
1 answer

mod_perl application having weird intermittent mysql driver issues

At completely random times my mod_perl scripts crash for no discernible reason, here's the error I get: [error] install_driver(mysql) failed: Attempt to reload DBD/mysql.pm aborted.\nCompilation failed in require at (eval 20) line 3.\n\n at but wait…
user197800
0
votes
5 answers

Sending the output of a command-line perl script to the browser via mod_perl

I have a plain perl script that can be run from the command-line via perl -w test.pl. I then have a mod_perl2 script that can be accessed from a web browser. I want to have the latter call the former and send the output to the browser, flushing as…
Kev
  • 15,899
  • 15
  • 79
  • 112
0
votes
1 answer

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 Apache to do this ?
Kishore Relangi
  • 1,928
  • 16
  • 18
0
votes
1 answer

Apache2.2 APR load error

The server starts without complaint, but as soon as I hit a page that requires an Apache2 module, like Apache2::Cookie, it dies: Can't load 'C:/Perl5.10/site/lib/auto/APR/Request/Request.dll' for module APR::Request: load_file:The specified module…
Kev
  • 15,899
  • 15
  • 79
  • 112
0
votes
2 answers

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 failed: $!"; This works fine under CGI but when run…
mvsjes2
  • 1,254
  • 2
  • 14
  • 23
0
votes
2 answers

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 worked as expected. When I turned on mod_perl…
mvsjes2
  • 1,254
  • 2
  • 14
  • 23
0
votes
1 answer

mod_perl and oracle vs php and oracle performance

I have a large Perl app that I need to make faster; on the basis that it spends most of its running time talking to the DB I wanted to know how many well written SQL statements I could run and meet the performance targets. To do this I wrote a very…
Alex M
  • 1
-1
votes
2 answers

"undefined symbol: mg_free_type" when installing mod_perl 2.0.10 with Apache 2.4.26 and Perl 5.10.1

I'm trying to install mod_perl 2.0.10 for use with a new Apache 2.4 instance. I've got Apache 2.4.26 up and running by itself, but I also need mod_perl installed for a couple of modules to work. Here's the problem: mod_perl always fails its tests…
dbradley771
  • 5
  • 1
  • 6
1 2 3
10
11