httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Octavian Rasnita" <>
Subject Re: [users@httpd] mod_perl and multi user environment - clashes with other users's data
Date Fri, 02 Dec 2005 00:08:48 GMT

From: "Senthil Nathan" <>

hi all,

(anyway if possible to change some setting in apache httpd.conf, im posting
this in this group)

im facing a problem with mod_perl2 on apache 2 as,

in the multiuser environment, everyone login to the page and their
respective profile gets displayed. after every click, other user's data also
gets aappended to this current view for the user, which is not the expected
one in mod_perl.

the same piece of code cgi/perl works very well on apache 2.(without
mod_perl). only the respective user's profile can be viewed.

so the problem arises only with mod_perl for sure.

how can this be resolved???

senthil nathan r

The perl programs were created for running them with mod_cgi and some
variables are probably globally defined, but mod_perl compiles the program
only once, then just runs them from memory, so the variables are not

The recommended way is to clean the programs and make them mod_perl
compatible, and I recommend reading for this.

If this implies too much work, you can use ModPerl::PerlRun (and not
This module will let you run cgi scripts with mod_perl but it will also
re-initialize the vars for each request.

PerlModule ModPerl::PerlRun
Alias /perl-run/ /home/httpd/perl/
<Location /perl-run>
SetHandler perl-script
PerlResponseHandler ModPerl::PerlRun
PerlOptions +ParseHeaders
Options +ExecCGI



The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message