Questions tagged [mod-perl]

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.

mod-perl
Filter by
Sorted by
Tagged with
0 votes
0 answers
166 views

Programming with Apache::DBI and firebird. Get Stucked httpd on exception

I have an issues on Web application programming with Firebird. I'm using mod_perl and Apache::DBI with Firebird. And also using CGI::Session for session handling. CGI::Session uses an already ...
8 votes
3 answers
2k views

Perl: How to free memory allocated for a scalar without access to the Perl variable?

This question is related to an answer to a former question about memory handling by Perl. I've learned that one can free memory in Perl by explicitly using the undef function on an available scalar ...
2 votes
2 answers
607 views

Can I run my mod_perl application as an ordinary user

Can I run my mod_perl aplication as an ordinary user similar to running a plain vanilla CGI application under suexec?
2 votes
1 answer
792 views

Apache - Mod Perl - Unknown Authz provider 'access'

I am trying to set up and run an old Web application(written in 2010) in a new Linux environment. The Apache server is not starting because of the error Unknown Authz provider access, caused by the ...
3 votes
1 answer
288 views

SOAP::Lite - clients using version 1.1 and 1.2 threaded in mod_perl

I have several SOAP::Lite clients running under mod_perl in Apache hhtpd. Some of them use 1.1 soap-servers and some of them use 1.2 servers. So I have code like: # In client 1: my $soap1 = SOAP::...
0 votes
0 answers
97 views

SendMessageTimeout API in Perl

I am trying to replace SendMessage API with SendMessageTimeout in an installation script (that refreshes the environment -- registry and stuff). After replacing the installer is crashing. I have ...
4 votes
1 answer
2k views

Mojolicious in Apache mod_perl

i've got an ~15year old Perl-Application. The application runs on Apache, example-code looks like: use Apache2::RequestUtil (); use Apache2::RequestRec (); use Apache2::Const -compile => qw(OK); ...
4 votes
2 answers
1k views

Mojolicious template cache is stale

I'm currently developing a small single-page Web app using Mojolicious. The app has a Javascript frontend (using Backbone) that talks to a REST-ish API; the layout of the source is roughly: use ...
0 votes
2 answers
856 views

Replace HTTP response header status from curl output

Is there a way to replace the HTTP/1.1 200 status with HTTP/1.1 500 status after getting the response from the curl command? If the body of the response contains the string Error retrieving data then ...
0 votes
1 answer
55 views

Values lifetime in mod_perl

.pm file: package fo_condition_editor; use utf8; use diagnostics -trace; use strict; use warnings FATAL => 'all'; {...} use Encode; my $msg = {}; return 1; {..} sub ..() { $msg->{saved} = ...
1 vote
1 answer
122 views

Catalyst + mod_perl + selenium: how to Devel::Cover?

I have a web application with lots of tests. I am currently only using Devel::Cover for coverage reports of my unit tests, but would also like coverage reports of my front-end Selenium tests. I have ...
1 vote
1 answer
351 views

perl parsing cgi parameters

I remember reading somewhere that it's possible to pass arguments to a perl cgi script as such: www.example.org/cgiscript/arg1/arg2/arg3 I don't remember where I read it and searching didn't help me,...
1 vote
1 answer
233 views

run lxr perl module as scripts under apache 2.4

I have been trying to get it right for the past couple of days, but could not. I am not a LAMP guy. I installed Apache 2 from the default Ubuntu repositories. Here is the contents of the /etc/apache2 ...
4 votes
2 answers
443 views

mod_perl memory leak

I recently discovered that one of our sites has a memory leak in it, it's very strange because it happened all of the sudden. I've used GTop to measure the memory size per process and it tells me that ...
14 votes
1 answer
391 views

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

How to proxy per-request WordPress user authentication data to another server in the same domain?

I’m using WordPress as my frontend for user administration, handling registration, logins, authentication and logouts. Users register and login using WordPress. The site has URLs served by a backend ...
0 votes
1 answer
26 views

Wildcard vhost with modperl

I have a server on which I want to run multiple wildcard vhosts, with their own modperl environment. Each vhost needs to run it's own startup script to define custom include paths. In a normal vhost ...
2 votes
3 answers
139 views

Return older files by date

I have the following files in a directory, where the delimiter is "_" and the third field is the date when the file was created. Now I need to always pick the file that has the earliest date in ...
0 votes
1 answer
248 views

Can't load 'C:/Apache/Perl/site/lib/auto/Apache2/ModSSL/ModSSL.dll'

I am running an Windows Server 2008 R2 Enterprise with an Apache Server installed and mod_perl & mod_ssl I just installed Apache2::ModSSL, but i was not able to use cpan for this and had to ...
1 vote
0 answers
108 views

How to debug mod_perl with reverse proxy of mod_proxy?

I'm new to this with a very low background so bear with me. I want to debug my issue of prematurely terminating loading the page from the reverse proxied site as it request something like filename....
0 votes
3 answers
1k views

Not able to install mod_perl module on the server

In my site I am getting an error : an error occurred while processing this directive It was working fine before moving to the new server. So when I checked I found that mod_perl module is missing. So ...
11 votes
1 answer
2k views

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'...
0 votes
0 answers
54 views

Command prompt does not allow 'Makefile' to make / install mod_perl.so

I had asked this question before, but deleted it when I was certain an IT expert had the answer. It's the same old story, but it's not a disaster if I am stuck using PHP5. I downloaded and installed ...
0 votes
2 answers
55 views

Custom Bugzilla hook not invoked when using mod_perl

I have added a custom hook to Bugzilla/Install/Util.pm: # Used by template_include_path. sub _template_base_directories { # ... Bugzilla::Hook::process('template_dirs_alter', { template_dirs =...
11 votes
4 answers
9k views

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

Can I use yum to install an additional apache httpd server?

I'm using a plain apache server as a front-end and a mod-perl enabled apache server as a backend with mod_proxy. I'm in the process of moving to a new hosting company so I'm installing software. In ...
1 vote
2 answers
177 views

how to store text file information into my sql database

this is my text file StudentId Name Dept address city 1 Chellappa CSE 22 xx-colony 2nd street coimbatore 2 Vijay IT 23 yy colony coimbatore In this file (22 xx-...
0 votes
1 answer
71 views

apache + mod_perl + couchbase = occasional connection problems

We use couchbase as session storage for mod_perl scripts. To avoid delays on clients caused by waiting for a new connection we do preconnect to couchbase on child_init apache stage. So during apache ...
2 votes
2 answers
7k views

can't ssh:unable to establish master SSH connection: bad password or master process exited unexpectedly

I have problem with perl modules, i 'm trying to connect to the remote server using the OpenSSH module from CPAN and i have given the username and password correctly but when i run my CGI from browser ...
2 votes
3 answers
2k views

How do I suppress the default apache error document in mod_perl?

I'm developing a RESTful API and I wrote a mod_perl2 handler that takes care of the request. My handler deals with error codes by setting $r->status($http_code) and return $http_code; Everything ...
1 vote
0 answers
863 views

Perl IIS7.5 502 error Bad gateway

I'm trying to run perl files using IIS 7.5 I followed this tutorial http://www.howtogeek.com/50479/how-to-install-perl-on-iis-7-for-windows-server-2008/ and I even installed the perl handler I can ...
1 vote
2 answers
2k views

xampp 1.8.1 perl not working and throwing error 500

I am using xampp 1.8.1 on windows 7 and want to use it for perl, but when i execute even the most easy hello world perl script it gives me an error 500. Does anybody know what i am doing wrong? this ...
0 votes
1 answer
426 views

file handler getting stuck while wrting output to a text file in Perl

I have perl script for which I have created a log file and all the operations this script will do it will write in the log file. It was working fine, I made some changes to fix some issues but now I ...
1 vote
0 answers
469 views

Expect.pm to login to a router and execute a command

I'm trying to login to the router and execute a command. I'm able to do it with Net::ssh::Perl. But I'd like to use perl Expect.pm instead of Net::ssh::Perl. Can some one tell me how to do the ...
1 vote
3 answers
314 views

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 ...
2 votes
1 answer
1k views

How to deal with the missing mod_perl.so when installing mod_perl 2.0.9 with apache 2.2.31 on Ubunt 14.04?

I am trying to install mod_perl 2.0.9 with Apache 2.2.31 on Ubuntu 14.04. I got stuck with a missing file mod_perl.so. Below are the details. Followed the instructions https://perl.apache.org/docs/2....
1 vote
1 answer
1k views

Out of memory issue with Archive::Tar module

I am doing a tar file extraction using Archive::Tar in Windows. The script is working fine most cases, but while encountering a big tar file it is throwing an out of memory error. I heard that this is ...
1 vote
0 answers
102 views

mod_perl debugging & user-code-lines are not shown

I'm playing around Apache::DB to debug my code under mod_perl. I can have it running and see the variables, but I cannot see the line of code with the instruction that is going to be executed (even if ...
0 votes
2 answers
80 views

how to use if else in array [duplicate]

I want to use if else condition in array. while passing an array elements I am getting wrong data. here is my code print "Enter Item u want: "; $i=<>; @array=("coffee","tea","buttermilk"); %...
3 votes
2 answers
4k views

LWP::useragent keep_alive not working

I am using below code to post JSON data using LWP::useragent. I want to keep my session open and post two requests but it seems that its not working on linux machine (two POST requests are sent in two ...
0 votes
3 answers
252 views

unable to take user input in perl

I am having a strange issue. I have written a script which is basically running a perl script in remote server using ssh. This script is working fine but after completion of the above operation it ...
1 vote
0 answers
468 views

close cmd after finishing the batch file using perl

I am not able to close the cmd window after finishing the batch file which I called from a perl script which will open a separate window for the batch file. I am using the below code to accomplish ...
2 votes
2 answers
3k views

file transfer using ssh sftpg3

I am writing a Perl script to do a secure file transfer using SSH sftpg3.exe But I am having issue to accessing the source file. the script able to pick the file from C:\xx\t.txt while running it ...
1 vote
1 answer
1k views

Extract REMOTE_ADDR using mod_perl

Please help how to extract REMOTE_ADDR value using mod_perl. I have following perl script: use Apache2::RequestUtil; use Apache2::RequestRec; $| = 1; print "Content-type: text/plain\n\n"; my $r = ...
4 votes
2 answers
1k views

Is mod_perl what I'm looking for? FastCGI? PSGI/Plack?

I have exhausted my ability to find answers on the web for this one. I'm trying to install mod_perl on windows and there are many dead ends. Is mod_perl even what I'm looking for?*** I have a ...
2 votes
1 answer
2k views

mod_perl2 with apache 2.22 Apache2::RequestIO::print: (103) Software caused connection abort

I’m trying to get a mod_perl2 application ported to AWS. As part of the port I thought I’d move from Debian Squeeze to Wheezy with the latest stable mod_perl & Apache2 combination. The ...
1 vote
0 answers
100 views

How to run Perl program through an ajax GET method?

I have an ajax code where i call a Perl script through querysting with GET method. Ajax code if(ajaxRequest != null) { ajaxRequest.open("GET", "dial1.pl" + queryString , true); ajaxRequest....
4 votes
2 answers
820 views

How does one build a website in Perl without CGI?

I asked a separate question about Python here, and was told that "classic CGI isn't the best way to use anything at all. With classic CGI server has to spawn a new process for every request" Now I am ...
1 vote
2 answers
444 views

mod_perl error returning 202 Apache2::Const::HTTP_ACCEPTED

I am trying to build a simple asynchronous web service with Apache and mod_perl. But every time I try to return HTTP status 202 (Accepted), I get an error. Below a very simple example (non-...
2 votes
2 answers
2k views

Locating Apache source code for mod_perl on Mac

I get the following error in Terminal when I try to install mod_perl: Please tell me where I can find your apache src [../apache_x.x/src] I've tried using cpan > install mod_perl(even forcing v. ...

1
2
3 4 5
7