Hello,
I installed apache2.0 with mod_perl2.0 taken two days ago from cvs.
I need to use new filters support available in version2.0 of apache
and mod_perl, but i have a problem with filters.
i tried to use the supplied test filter which comes with
modperl-2.0/t/filter/TestFilter/lc.pm:
added
<Location /test>
PerlOutputFilterHandler TestFilter::lc
</Location>
and installed the TestFilter::lc module:
#============================
package TestFilter::lc;
use strict;
use warnings FATAL => 'all';
use Apache::Filter ();
sub handler {
my $filter = shift;
while ($filter->read(my $buffer, 1024)) {
$filter->print(lc $buffer);
}
0;
}
#============================
but apache always closes the connection whenever i access files in
/test, and even does not print anything into the error_log. :(
could someone confirm that this works or not?
Please Cc: to my email.
Thanks,
v.
the output of "perl build/config.pl" follows:
*** using lib/Apache/BuildConfig.pm
*** Makefile.PL options:
MP_APXS => /usr/local/apache2/bin/apxs
MP_GENERATE_XS => 1
MP_LIBNAME => libmodperl
MP_USE_DSO => 1
*** /usr/local/apache2/bin/httpd -V
Server version: Apache/2.0.26-dev
Server built: Sep 30 2001 18:47:56
Server's Module Magic Number: 20010825:0
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_FILE_BASED_SHM
-D APR_HAS_MMAP
-D APR_HAVE_IPV6
-D APR_USE_FCNTL_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D HTTPD_ROOT="/usr/local/apache2"
-D SUEXEC_BIN="/usr/local/apache2/sbin/suexec"
-D DEFAULT_ERRORLOG="logs/error_log"
-D SERVER_CONFIG_FILE="conf/httpd.conf"
*** /usr/local/bin/perl -V
Summary of my perl5 (revision 5.0 version 6 subversion 1) configuration:
Platform:
osname=freebsd, osvers=4.0-stable, archname=i386-freebsd
uname='freebsd hostname 4.0-stable freebsd 4.0-stable #0: sun jun 18 14:37:58 pdt
2000 [EMAIL PROTECTED]:usrsrcsyscompiledg i386 '
config_args=''
hint=recommended, useposix=true, d_sigaction=define
usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
useperlio=undef d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
Compiler:
cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include',
optimize='-O',
cppflags='-fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='2.95.2 19991024 (release)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=4, usemymalloc=n, prototype=define
Linker and Libraries:
ld='cc', ldflags ='-Wl,-E -L/usr/local/lib'
libpth=/usr/lib /usr/local/lib
libs=-lm -lc -lcrypt -lutil
perllibs=-lm -lc -lcrypt -lutil
libc=, so=so, useshrplib=false, libperl=libperl.a
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
cccdlflags='-DPIC -fpic', lddlflags='-shared -L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: USE_LARGE_FILES
Built under freebsd
Compiled at Sep 30 2001 14:25:19
@INC:
/usr/local/lib/perl5/5.6.1/i386-freebsd
/usr/local/lib/perl5/5.6.1
/usr/local/lib/perl5/site_perl/5.6.1/i386-freebsd
/usr/local/lib/perl5/site_perl/5.6.1
/usr/local/lib/perl5/site_perl
.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]