Re: [users@httpd] mod_perl issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



For more info from the httpd.conf,

PerlRequire "/opt/hiweb/server/perl-startup/startup.pl"

Alias /hi-bin/ "/opt/hiweb/server/htdocs/modperl/higui/"
#PerlModule ModPerl::PerlRun
#  PerlModule Apache2::Reload
#  PerlInitHandler Apache2::Reload

<Directory "/opt/hiweb/server/htdocs/modperl/higui/">
    Options Indexes
    AllowOverride None
    Order allow,deny
    Allow from all
    <Files ~ "\.(cgi|pl|pm)$">
      SetHandler perl-script
      #PerlHandler Apache::PerlRun
      #PerlResponseHandler ModPerl::PerlRunPrefork
      PerlResponseHandler ModPerl::RegistryPrefork
      #PerlResponseHandler ModPerl::PerlRunPrefork
      PerlOptions +ParseHeaders
      PerlSendHeader On
      Options +ExecCGI
      Allow from all
    </Files>
</Directory>

Let me know if anything has to be changed in this config,

Thanks
Senthil


On 12/6/05, Senthil Nathan <rsennat@xxxxxxxxx> wrote:
hi,
you are right. it uses ModPerl::Registry.
so how do i use ModPerl::PerlRun.

Because i just used ModPerl::PerlRun and the problem still persists.
In the httpd.conf i used,      PerlResponseHandler ModPerl::RegistryPrefork

please help me on this.

thanks
senthil


On 12/6/05, Octavian Rasnita <orasnita@xxxxxx> wrote:
From: "Senthil Nathan" < rsennat@xxxxxxxxx >

Hi all,

these problems are related to Apache 2 and mod_perl 2

problem 1:
Im using mod_perl 2 on Apache 2. I am using HTML::Template to display the
data from the perl/cgi script.

For the first time loading the data is displayed properly. then for every
reload the data displayed on the template gets repeatedly displayed. ( i.e,
it gets accumulated. for 5 times reload 5 sets of data is displayed in the
template).

Actually this problem is not seen on cgi/perl environment. Only with
mod_perl this problem occurs.
---

The program is not correctly written for working with mod_perl.
Perhaps it uses global variables and they are not re-initialized at program
startup.

ModPerl compiles the program only once.

Read on perl.apache.org.

problem 2:
in multiuser login, when an user logins to the application, only his dats
should be visible to him.
but in mod_perl other user's data is also seen ob every reload.

this problem also occurs only with mod_perl. not in cgi/perl env.

This is the same issue. The program is compiled only once and it keeps the
data in the memory. The next time it is ran, the next visitor will see the
data.

I think this program uses ModPerl::Registry, right?

Try using ModPerl::PerlRun instead.


See:
http://perl.apache.org/docs/2.0/api/ModPerl/PerlRun.html

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: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux