I'm just moving a web server to a new one (old one: Apache 2.0.x, PHP 4.x, MySQL 4.x; new one: Apache 2.2.3, PHP 5.x, MySQL 5.x etc.).

One thing that works differently is mod_deflate - I'm not sure if it works properly for PHP pages.


mod_deflate configuration look like that on both servers:

# use compression
SetInputFilter DEFLATE
SetOutputFilter DEFLATE

DeflateFilterNote Input instream
DeflateFilterNote Output outstream
DeflateFilterNote Ratio ratio
<IfModule mod_deflate.c>
LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate
</IfModule>


However, the logs on a new server show that PHP pages are not compressed, and everything else is compressed:

"GET /wiki/index.php/CUPS_troubleshooting HTTP/1.1" -/- (-%)
"GET /phpMyAdmin/favicon.ico HTTP/1.1" 6569/18886 (34%)


The old server show the pages are compressed - ratio is other than "-" and shows numbers:

"GET /wiki/index.php/Related_projects HTTP/1.1" 3707/12099 (30%)


Why doesn't Apache 2.2.3 show compression ratios for PHP pages?

When I checked with Wireshark, the pages are indeed compressed.

How can I make sure that the ratios are shown in the log?

php.ini on both servers look exactly the same.


--
Tomasz Chmielewski
http://wpkg.org

---------------------------------------------------------------------
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: [EMAIL PROTECTED]
  "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to