fwfxf8uv Posted July 13, 2017 Posted July 13, 2017 (edited) Hi. Can I have "zlib.output_compression" enabled for php7.1.6? Thanks. Edited July 13, 2017 by isobar
Krydos Posted July 13, 2017 Posted July 13, 2017 It's already in there http://krydos.heliohost.org/71/phpinfo.php
fwfxf8uv Posted July 13, 2017 Author Posted July 13, 2017 (edited) After I posted the question, I noticed that zlib was already enabled.But "zlib.output_compression" is "Off". So I edited my question. Is it ok to set that to On or some size for the buffer? Will that break anything? Thanks again. Edited July 13, 2017 by isobar
Krydos Posted July 13, 2017 Posted July 13, 2017 We already have mod_deflate installed which does the same thing, but works for all file types not just php files. Put something like this in your .htaccess to enable it<IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript </IfModule> You can test your pages to see if it's enabled properly by using a tool like this http://www.whatsmyip.org/http-compression-test/
fwfxf8uv Posted July 13, 2017 Author Posted July 13, 2017 Thank you. I will try that to see if it makes mediawiki faster: https://lists.wikimedia.org/pipermail/mediawiki-l/2006-October/015262.html
bdistler Posted July 13, 2017 Posted July 13, 2017 (edited) Krydos, on 12 Jul 2017 - 9:51 PM, said: Put something like this in your .htaccess to enable it...- Enabling mod_deflate (gzip compression) in cPanel in box [ Software ] - click on [ Optimize Website ] select [ Compress all content ] click on [ Update Settings ] -OR- select [ Compress the specified MIME types. ] to limit which types of content are compressed - input the particular MIME (file) types you want to compress (e.g. text/html text/plain text/xml text/css application/xml application/xhtml+xml application/rss+xml application/javascript application/x-javascript ) NOTE: it is best not to add image, video, audio, PDF or other types of binary files - these file formats are already compressed - so it is not necessary to compress these further once you have set your file types - click on [ Update Settings ] -OR- to turn off gzip compression - select [ Disabled ] - click on [ Update Settings ] -AND- test your site (URL) at http://www.whatsmyip.org/http-compression-test/ ### Edited July 14, 2017 by bdistler
Krydos Posted July 14, 2017 Posted July 14, 2017 @bdistler, oh cool, I didn't even know there was an option for that in cpanel. Thanks for pointing that out.
fwfxf8uv Posted July 16, 2017 Author Posted July 16, 2017 (edited) bdistler, I am using that method now, it really speeds up the website. Thanks. Edited July 16, 2017 by fwfxf8uv
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now