You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Bogomolnyi Constantin <hp...@netcourrier.com> on 2000/09/11 23:05:50 UTC
Apache::Compress install problems/On the fly html content compression
Hello all,
I try to install Apache::Compress module , but
when i make test i says :
Invalid command '<Perl>', perhaps mis-spelled or defined by a module not include
d in the server configuration
make: *** [start_httpd] Error 1
And if I try to start httpd it says :
Syntax error on line 284 of /usr/local/etc/httpd_perl/httpd.conf:
Can't locate loadable object for module Apache::File in @INC (@INC contains: /us
r/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0 /usr/local/lib/per
l5/site_perl/5.6.0/i686-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/li
b/perl5/site_perl /usr/local/ /usr/local/lib/perl) at /usr/local/lib/perl5/site_
perl/5.6.0/i686-linux/mod_perl.pm line 16
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.6.0/Apache/Com
press.pm line 5.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.6.0/Apache
/Compress.pm line 5.
Compilation failed in require at (eval 15) line 3.
at the line 284 on httpd.conf i have :PerlModule Apache::Compress
Any idea would be apreciated .
I'm also looking for some information about On the fly compression
because we have an huge 100 ko main page , and 70% of our users are using
IE4 ou NC4 or > so the accept gziped content .
Thanks to all
CB
Re: Apache::Compress install problems/On the fly html contentcompression
Posted by Ken Williams <ke...@forum.swarthmore.edu>.
In my (incomplete) testing, Netscape 4.7x works. So far
Apache::Compress takes the browser at its word, and only compresses the
content if it sees an "Accept-Encoding: gzip" header sent from the
client to the server. Some other folks have used the approach of
forcing gzipped content whenever the module "knows" the browser can
handle it. I tend not to like that approach.
The Apache::Compress code is only about 40 lines long in total, you
might try putting a few debug statements in there to see what's going on.
It's possible that the Content-length header isn't getting properly
reset (Apache::Compress doesn't set it, though it probably should), but
that the content is getting compressed/decompressed properly anyway.
I'm not sure whether that's much of a problem for most browsers or not.
Certainly it must be a problem for caching proxies or something.
ConstantinB@ifrance.com (Bogomolnyi Constantin) wrote:
>hello ,
>Thank you very much , EVERYTHING=1 helps now it look like
>Apache::Compress works but when I put
> PerlModule Apache::Compress
>
> # Compress regular files
> <FilesMatch "\.html$">
> PerlHandler Apache::Compress
> </FilesMatch>
>in my httpd.conf and i take test.html witch is as big as 700ko , so I expect
>to winn at least 30 % using gzip , but when i look in access log i see
>10.x.x.x - - [...] "GET HTTP/1.1" 200 700000 witch mean that there is no
>compression used , But i use IE 5.1 and NE4.5 so it should work , non ?
> Thank you very much for all information on how it is supposed to work is it
>only Linux versions of netscape witch is concerned with this ??
>
>Best
>CB
>
>----- Original Message -----
>From: "Matt Sergeant" <ma...@sergeant.org>
>To: "Bogomolnyi Constantin" <hp...@netcourrier.com>
>Cc: <mo...@apache.org>
>Sent: Monday, September 11, 2000 11:22 PM
>Subject: Re: Apache::Compress install problems/On the fly html
>contentcompression
>
>
>> On Mon, 11 Sep 2000, Bogomolnyi Constantin wrote:
>>
>> > Hello all,
>> > I try to install Apache::Compress module , but
>> > when i make test i says :
>> > Invalid command '<Perl>', perhaps mis-spelled or defined by a module not
>include
>> > d in the server configuration
>> > make: *** [start_httpd] Error 1
>> >
>> > And if I try to start httpd it says :
>> > Syntax error on line 284 of /usr/local/etc/httpd_perl/httpd.conf:
>> > Can't locate loadable object for module Apache::File in @INC (@INC
>contains: /us
>> > r/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0
>/usr/local/lib/per
>> > l5/site_perl/5.6.0/i686-linux /usr/local/lib/perl5/site_perl/5.6.0
>/usr/local/li
>> > b/perl5/site_perl /usr/local/ /usr/local/lib/perl) at
>/usr/local/lib/perl5/site_
>> > perl/5.6.0/i686-linux/mod_perl.pm line 16
>> > Compilation failed in require at
>/usr/local/lib/perl5/site_perl/5.6.0/Apache/Com
>> > press.pm line 5.
>> > BEGIN failed--compilation aborted at
>/usr/local/lib/perl5/site_perl/5.6.0/Apache
>> > /Compress.pm line 5.
>> > Compilation failed in require at (eval 15) line 3.
>> >
>> > at the line 284 on httpd.conf i have :PerlModule Apache::Compress
>> >
>> > Any idea would be apreciated .
>>
>> You need to recompile mod_perl with the option EVERYTHING=1 (Doug - whats
>> the likelihood of you making that the default for 1.25?)...
>>
>> > I'm also looking for some information about On the fly compression
>> > because we have an huge 100 ko main page , and 70% of our users are
>using
>> > IE4 ou NC4 or > so the accept gziped content .
>>
>> *cough* AxKit *cough*
>>
>> :-)
>>
>> --
>> <Matt/>
>>
>> Fastnet Software Ltd. High Performance Web Specialists
>> Providing mod_perl, XML, Sybase and Oracle solutions
>> Email for training and consultancy availability.
>> http://sergeant.org | AxKit: http://axkit.org
>>
>
------------------- -------------------
Ken Williams Last Bastion of Euclidity
ken@forum.swarthmore.edu The Math Forum
Re: Apache::Compress install problems/On the fly html contentcompression
Posted by Bogomolnyi Constantin <Co...@ifrance.com>.
hello ,
Thank you very much , EVERYTHING=1 helps now it look like Apache::Compress
works
but when I put
PerlModule Apache::Compress
# Compress regular files
<FilesMatch "\.html$">
PerlHandler Apache::Compress
</FilesMatch>
in my httpd.conf and i take test.html witch is as big as 700ko , so I expect
to winn at least 30 % using gzip , but when i look in access log i see
10.x.x.x - - [...] "GET HTTP/1.1" 200 700000 witch mean that there is no
compression used , But i use IE 5.1 and NE4.5 so it should work , non ?
Thank you very much for all information on how it is supposed to work is it
only Linux versions of netscape witch is concerned with this ??
Best
CB
----- Original Message -----
From: "Matt Sergeant" <ma...@sergeant.org>
To: "Bogomolnyi Constantin" <hp...@netcourrier.com>
Cc: <mo...@apache.org>
Sent: Monday, September 11, 2000 11:22 PM
Subject: Re: Apache::Compress install problems/On the fly html
contentcompression
> On Mon, 11 Sep 2000, Bogomolnyi Constantin wrote:
>
> > Hello all,
> > I try to install Apache::Compress module , but
> > when i make test i says :
> > Invalid command '<Perl>', perhaps mis-spelled or defined by a module not
include
> > d in the server configuration
> > make: *** [start_httpd] Error 1
> >
> > And if I try to start httpd it says :
> > Syntax error on line 284 of /usr/local/etc/httpd_perl/httpd.conf:
> > Can't locate loadable object for module Apache::File in @INC (@INC
contains: /us
> > r/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0
/usr/local/lib/per
> > l5/site_perl/5.6.0/i686-linux /usr/local/lib/perl5/site_perl/5.6.0
/usr/local/li
> > b/perl5/site_perl /usr/local/ /usr/local/lib/perl) at
/usr/local/lib/perl5/site_
> > perl/5.6.0/i686-linux/mod_perl.pm line 16
> > Compilation failed in require at
/usr/local/lib/perl5/site_perl/5.6.0/Apache/Com
> > press.pm line 5.
> > BEGIN failed--compilation aborted at
/usr/local/lib/perl5/site_perl/5.6.0/Apache
> > /Compress.pm line 5.
> > Compilation failed in require at (eval 15) line 3.
> >
> > at the line 284 on httpd.conf i have :PerlModule Apache::Compress
> >
> > Any idea would be apreciated .
>
> You need to recompile mod_perl with the option EVERYTHING=1 (Doug - whats
> the likelihood of you making that the default for 1.25?)...
>
> > I'm also looking for some information about On the fly compression
> > because we have an huge 100 ko main page , and 70% of our users are
using
> > IE4 ou NC4 or > so the accept gziped content .
>
> *cough* AxKit *cough*
>
> :-)
>
> --
> <Matt/>
>
> Fastnet Software Ltd. High Performance Web Specialists
> Providing mod_perl, XML, Sybase and Oracle solutions
> Email for training and consultancy availability.
> http://sergeant.org | AxKit: http://axkit.org
>
Re: Apache::Compress install problems/On the fly html content
compression
Posted by Matt Sergeant <ma...@sergeant.org>.
On Mon, 11 Sep 2000, Bogomolnyi Constantin wrote:
> Hello all,
> I try to install Apache::Compress module , but
> when i make test i says :
> Invalid command '<Perl>', perhaps mis-spelled or defined by a module not include
> d in the server configuration
> make: *** [start_httpd] Error 1
>
> And if I try to start httpd it says :
> Syntax error on line 284 of /usr/local/etc/httpd_perl/httpd.conf:
> Can't locate loadable object for module Apache::File in @INC (@INC contains: /us
> r/local/lib/perl5/5.6.0/i686-linux /usr/local/lib/perl5/5.6.0 /usr/local/lib/per
> l5/site_perl/5.6.0/i686-linux /usr/local/lib/perl5/site_perl/5.6.0 /usr/local/li
> b/perl5/site_perl /usr/local/ /usr/local/lib/perl) at /usr/local/lib/perl5/site_
> perl/5.6.0/i686-linux/mod_perl.pm line 16
> Compilation failed in require at /usr/local/lib/perl5/site_perl/5.6.0/Apache/Com
> press.pm line 5.
> BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.6.0/Apache
> /Compress.pm line 5.
> Compilation failed in require at (eval 15) line 3.
>
> at the line 284 on httpd.conf i have :PerlModule Apache::Compress
>
> Any idea would be apreciated .
You need to recompile mod_perl with the option EVERYTHING=1 (Doug - whats
the likelihood of you making that the default for 1.25?)...
> I'm also looking for some information about On the fly compression
> because we have an huge 100 ko main page , and 70% of our users are using
> IE4 ou NC4 or > so the accept gziped content .
*cough* AxKit *cough*
:-)
--
<Matt/>
Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org | AxKit: http://axkit.org