Hi,

From: "Senthil Nathan" <[EMAIL PROTECTED]>

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???

thanks
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
re-initialized.

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

If this implies too much work, you can use ModPerl::PerlRun (and not
ModPerl::Registry)
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
</Location>


---

Teddy



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to