ExtFilterDefine persistency

ExtFilterDefine persistency

am 20.05.2010 00:36:32 von david

This is a multi-part message in MIME format.

------=_NextPart_000_017D_01CAF782.342F1370
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

If I haven't sent this to the correct place please inform me.

I've look through the assorted documentation, both mod_perl and Apache, =
and haven't found a solution to my situation. I've also given the =
internet a try with no luck. I admit I'm new to mod_perl.

I've installed mod_perl onto an Apache server, version 2.2.15, Windows =
XP, and have it running. I'm running Perl 5.8.8

I've inserted the following line into my httpd.conf file:

ExtFilterDefine IpCount mode=3Dinput cmd=3D"C:/perl/bin/perl.exe =
C:/Apache22/cgi-bin/ip_count.pl".

The file ip_count.pl will execute just fine but because I have to load =
the Perl interpreter each time, and I can't specify a URL, the =
performance is less than desired. No persistency.

Is there a way to have mod_perl handle its execution by specifying =
something other than "C:/perl/bin/perl.exe"?

Thank You
------=_NextPart_000_017D_01CAF782.342F1370
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



charset=3Diso-8859-1">






If I haven't sent this to the correct =
place please=20
inform me.

 

I've look through the assorted=20
documentation, both mod_perl and Apache, and haven't found a =
solution to my=20
situation. I've also given the internet a try with no luck. I admit I'm =
new to=20
mod_perl.

 

I've installed mod_perl onto an =
Apache server,=20
version 2.2.15, Windows XP, and have it running. I'm running Perl=20
5.8.8

 

I've inserted the following line into =
my httpd.conf=20
file:

 

ExtFilterDefine IpCount mode=3Dinput=20
cmd=3D"C:/perl/bin/perl.exe =
C:/Apache22/cgi-bin/ip_count.pl".

 

The file ip_count.pl will execute just=20
fine but because I have to load the Perl interpreter each time, and =
I can't=20
specify a URL, the performance is less than desired. No=20
persistency.

 

Is there a way to have =
mod_perl handle=20
its execution by specifying something other than=20
"C:/perl/bin/perl.exe"?

 

Thank=20
You


------=_NextPart_000_017D_01CAF782.342F1370--

Re: ExtFilterDefine persistency

am 20.05.2010 14:43:45 von Jeff Trawick

On Wed, May 19, 2010 at 6:36 PM, David wrote:
> If I haven't sent this to the correct place please inform me.
>
> I've look through the assorted documentation,=A0both mod_perl and Apache,=
and
> haven't found a solution to my situation. I've also given the internet a =
try
> with no luck. I admit I'm new to mod_perl.
>
> I've installed mod_perl onto=A0an Apache server, version 2.2.15, Windows
> XP,=A0and have it running. I'm running Perl 5.8.8
>
> I've inserted the following line into my httpd.conf file:
>
> ExtFilterDefine IpCount mode=3Dinput cmd=3D"C:/perl/bin/perl.exe
> C:/Apache22/cgi-bin/ip_count.pl".

That doesn't use mod_perl. Instead, it launches your script
externally in the same manner as a traditional CGI (separate process,
no persistence between requests).

>
> The file ip_count.pl will execute just fine=A0but because I have to load =
the
> Perl interpreter each time, and I can't specify a URL,=A0the performance =
is
> less than desired. No persistency.
>
> Is there a way to=A0have mod_perl=A0handle its execution by specifying so=
mething
> other than "C:/perl/bin/perl.exe"?

mod_perl and mod_ext_filter don't interact for filtering.

mod_perl provides its own filtering interface; it wouldn't be as easy
to implement as your simple cmd-line filter, but it would have much
higher performance; see
http://perl.apache.org/docs/2.0/api/Apache2/Filter.html

(I dunno much about mod_perl, but I wrote mod_ext_filter originally.)