Last modified: 2012-04-12 13:55:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28243, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26243 - $wgUseGzip is not working
$wgUseGzip is not working
Status: NEW
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
1.16.x
All FreeBSD
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://krumovgrad.eu/wiki/
: testme
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-12-05 00:52 UTC by Ilhan Y.
Modified: 2012-04-12 13:55 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Ilhan Y. 2010-12-05 00:52:49 UTC
I have added $wgUseGzip = true; to LocalSettings.php but it does not compress the pages.
Comment 1 Platonides 2010-12-05 01:08:26 UTC
Does your php include the zlib module? Not having that module is the most likely cause for compressing the output.

Browser ability is automatically detected and $wgUseGzip is no longer required.

BTW, what's Apashi Serv ? A localised version of Apache httpd?
Comment 2 Ilhan Y. 2010-12-05 01:20:32 UTC
zlib 1.2.3 is included.

I'm already using gzip with PHP
(I use ob_start("ob_gzhandler"); at http://krumovgrad.eu/ )
Also check http://krumovgrad.eu/phpinfo.php

Yes, Apashi Serv is localized version of Apache httpd.

$wgUseGzip is no longer required? My other wiki is not gzip enabled by default too? metupedia.com
Comment 3 Ilhan Y. 2010-12-12 03:05:55 UTC
Is there any workaround?
Comment 4 Ilhan Y. 2010-12-12 03:08:52 UTC
Workaround: add ob_start("ob_gzhandler"); to the index.php.
Comment 5 Brion Vibber 2011-02-14 02:36:27 UTC
$wgUseGzip is specifically for the old-fashioned local file-based caching, and is not used anywhere else. If you are not using $wgUseFileCache, then it will have no effect.

Things to check:
* make sure $wgDisableOutputCompression has not been set to true
* make sure MW_NO_OUTPUT_COMPRESSION has not been defined
* check if the php.ini value zlib.output_compression is set funny -- if it appears to be on, MediaWiki disengages its own gzipping to avoid breaking
* make sure PHP's zlib module is enabled -- we key off the 'gzencode' function, which must be present
* make sure that nothing is forcing HTTP output to have started early, which will make it too late for the compression to engage
* make sure that the HTTP Accept-Encoding header (as server variable HTTP_ACCEPT_ENCODING) makes it through to PHP intact -- if it's not present and listing 'gzip', no compression will be done.
Comment 6 Ilhan Y. 2011-05-29 03:22:23 UTC
* $wgDisableOutputCompression is set to false
* MW_NO_OUTPUT_COMPRESSION has not been defined

I don't know about others. I'll make a new clean installation (without addons) and we'll see.
Comment 7 Dan Collins 2011-07-17 03:26:47 UTC
How did the new installation work for you?
Comment 8 Ilhan Y. 2011-07-27 09:53:26 UTC
I have just installed, compression won't work again :/
http://krumovgrad.eu/test/index.php/Main_Page
http://krumovgrad.eu/test/phpinfo.php

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links