How to check that mod_deflate is enable ?

How to check that mod_deflate is enable ?

am 02.02.2010 10:46:28 von joydeep

Hello list,

I have suse 11.1 server with Apache/2.2.10 (Linux/SUSE). I like to
enable and check the presence of mod_deflate to save bandwidth.

"a2enmod -l " reports


`````````````````
actions alias auth_basic authn_file authz_host authz_groupfile
authz_default authz_user authn_dbm autoindex dir env expires include
log_config mime negotiation setenvif ssl suexec userdir php5 rewrite
unique_id security2 headers cgi

`````````````````

so tye module is not loaded, I have checked through yast also but no
such module present in the repository. How can I then enable and check
the presence of that module ? Please suggest.

Thanks

--
জয়দীপ বক্সী


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: How to check that mod_deflate is enable ?

am 04.02.2010 11:37:37 von joydeep

Any clue please ?



On 02/02/2010 03:16 PM, J. Bakshi wrote:
> Hello list,
>
> I have suse 11.1 server with Apache/2.2.10 (Linux/SUSE). I like to
> enable and check the presence of mod_deflate to save bandwidth.
>
> "a2enmod -l " reports
>
>
> `````````````````
> actions alias auth_basic authn_file authz_host authz_groupfile
> authz_default authz_user authn_dbm autoindex dir env expires include
> log_config mime negotiation setenvif ssl suexec userdir php5 rewrite
> unique_id security2 headers cgi
>
> `````````````````
>
> so tye module is not loaded, I have checked through yast also but no
> such module present in the repository. How can I then enable and check
> the presence of that module ? Please suggest.
>
> Thanks
>
>


--
জয়দীপ বক্সী


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: How to check that mod_deflate is enable ?

am 04.02.2010 11:49:20 von Martin Barry

$quoted_author = "J. Bakshi" ;
>
> Any clue please ?

Check it's been included:

rpm -ql apache2 | grep deflate


Enable it:

a2enmod deflate


cheers
Marty

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: How to check that mod_deflate is enable ?

am 04.02.2010 12:03:33 von joydeep

On 02/04/2010 04:19 PM, Martin Barry wrote:
> $quoted_author = "J. Bakshi" ;
>
>> Any clue please ?
>>
>
> Check it's been included:
>
> rpm -ql apache2 | grep deflate
>
>
> Enable it:
>
> a2enmod deflate
>
>
> cheers
> Marty
>
>

Hello Marty,

many many thanks for your kind attention and solution. It helped me.
Is there any way to check the deflate is operational ?

thanks once again.

--
জয়দীপ বক্সী


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: How to check that mod_deflate is enable ?

am 04.02.2010 12:07:45 von Daniel Reinhardt

--------------------------------------------------
From: "J. Bakshi"
Sent: 04 February, 2010 11:03
To:
Subject: Re: [users@httpd] How to check that mod_deflate is enable ?

> On 02/04/2010 04:19 PM, Martin Barry wrote:
>> $quoted_author = "J. Bakshi" ;
>>
>>> Any clue please ?
>>>
>>
>> Check it's been included:
>>
>> rpm -ql apache2 | grep deflate
>>
>>
>> Enable it:
>>
>> a2enmod deflate
>>
>>
>> cheers
>> Marty
>>
>>
>
> Hello Marty,
>
> many many thanks for your kind attention and solution. It helped me.
> Is there any way to check the deflate is operational ?
>
> thanks once again.
>
> --
> জয়দীপ বক্সী
>
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>

Check in your main httpd.conf file for mod_deflate, and see if load is next to
it.

Thanks,

Daniel


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: How to check that mod_deflate is enable ?

am 04.02.2010 12:46:37 von Philip Wigg

> many many thanks for your kind attention and solution. It helped me.
> Is there any way to check the deflate is operational ?

Also trying reading the mod_deflate documentation:-

http://httpd.apache.org/docs/2.2/mod/mod_deflate.html

There you will see examples of how to configure a mod_deflate log file
which is useful is you want to see what mod_deflate is doing.

A couple of things that tripped me up whilst configuring this recently:-

1. mod_deflate doesn't seem to play nicely with IE6. Google
'mod_deflate IE6' to see what I mean. We ended up disabling it for
IE6.

2. If you configure mod_deflate logging in the main host, but you've
enabled virtual hosting, your log file will be created but it will be
empty. You need to configure the log file inside your Virtual Host
block instead.

Cheers,
Phil.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: How to check that mod_deflate is enable ?

am 05.02.2010 05:20:51 von joydeep

On 02/04/2010 05:16 PM, Philip Wigg wrote:
> http://httpd.apache.org/docs/2.2/mod/mod_deflate.html
>
> There you will see examples of how to configure a mod_deflate log file
> which is useful is you want to see what mod_deflate is doing.
>
> A couple of things that tripped me up whilst configuring this recently:-
>
> 1. mod_deflate doesn't seem to play nicely with IE6. Google
> 'mod_deflate IE6' to see what I mean. We ended up disabling it for
> IE6.
>
> 2. If you configure mod_deflate logging in the main host, but you've
> enabled virtual hosting, your log file will be created but it will be
> empty. You need to configure the log file inside your Virtual Host
> block instead.
>
> Cheers,
> Phil.
>

Thanks to all responders. I ensure that mod_deflate is now enable in my
suse 11.0 server

/etc/sysconfig/apache2
---------------------------------

[.....]

LoadModule deflate_module /usr/lib64/apache2-prefork/mod_deflate.so

[......]

I have placed the following in httpd.conf

[.......]

AddOutputFilterByType DEFLATE text/html text/plain text/xml

[.......]

and restarted apache. No error or complaining. But I have not found any
difference in access.log to see the presence of deflate. I admit I have
not change the LogFormat as awstats is running here and the LogFormat is
modified to support awstats. vhost logging is separated by vlogger here.

So I can see one of two options

1. mod_deflate is running but can't see here in log
2. mod_deflate is not running at all.

How can I go further to check it ?

thanks

--
জয়দীপ বক্সী


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: How to check that mod_deflate is enable ?

am 05.02.2010 05:30:26 von Frank Gingras

On 02/04/2010 11:20 PM, J. Bakshi wrote:
> On 02/04/2010 05:16 PM, Philip Wigg wrote:
>> http://httpd.apache.org/docs/2.2/mod/mod_deflate.html
>>
>> There you will see examples of how to configure a mod_deflate log file
>> which is useful is you want to see what mod_deflate is doing.
>>
>> A couple of things that tripped me up whilst configuring this recently:-
>>
>> 1. mod_deflate doesn't seem to play nicely with IE6. Google
>> 'mod_deflate IE6' to see what I mean. We ended up disabling it for
>> IE6.
>>
>> 2. If you configure mod_deflate logging in the main host, but you've
>> enabled virtual hosting, your log file will be created but it will be
>> empty. You need to configure the log file inside your Virtual Host
>> block instead.
>>
>> Cheers,
>> Phil.
>>
>
> Thanks to all responders. I ensure that mod_deflate is now enable in my
> suse 11.0 server
>
> /etc/sysconfig/apache2
> ---------------------------------
>
> [.....]
>
> LoadModule deflate_module /usr/lib64/apache2-prefork/mod_deflate.so
>
> [......]
>
> I have placed the following in httpd.conf
>
> [.......]
>
> AddOutputFilterByType DEFLATE text/html text/plain text/xml
>

> [.......]
>
> and restarted apache. No error or complaining. But I have not found any
> difference in access.log to see the presence of deflate. I admit I have
> not change the LogFormat as awstats is running here and the LogFormat is
> modified to support awstats. vhost logging is separated by vlogger here.
>
> So I can see one of two options
>
> 1. mod_deflate is running but can't see here in log
> 2. mod_deflate is not running at all.
>
> How can I go further to check it ?
>
> thanks
>

Start by removing the IfModule directives.

Frank.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: How to check that mod_deflate is enable ?

am 05.02.2010 05:50:30 von joydeep

On 02/05/2010 10:00 AM, Frank Gingras wrote:
>>
>> So I can see one of two options
>>
>> 1. mod_deflate is running but can't see here in log
>> 2. mod_deflate is not running at all.
>>
>> How can I go further to check it ?
>>
>> thanks
>>
>
>
> Start by removing the IfModule directives.
>
> Frank.
>

Hello Frank,

I have already done that. To be in a safe side I have inserted the
config directly at a particular vhost like


>


[.....]
AddOutputFilterByType DEFLATE text/html text/plain text/xml
[.....]





This experiment does not affect other sites running here and log
analysis is easy also. After restarting the apache I have visited some
of the pages from that side but no more difference in the log .

Any clue ?
Thanks

--
জয়দীপ বক্সী


------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: How to check that mod_deflate is enable ?

am 05.02.2010 09:37:29 von Philip Wigg

> This experiment does not affect other sites running here and log
> analysis is easy also. After restarting the apache I have visited some
> of the pages from that side but no more difference in the log .

mod_deflate won't automatically start putting entries in your current
access logs. Read the mod_deflate documentation I sent you earlier, or
at least try searching it for 'log'.

Cheers,
Phil.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org