• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » zlib.output_compression Should Be Off on Cloud Server for Performance

By Abhishek Ghosh May 2, 2014 10:50 am Updated on May 2, 2014

zlib.output_compression Should Be Off on Cloud Server for Performance

Advertisement

zlib.output_compression, Specifically for PHP-MySQL Web Software Like WordPress Should Be Off on Cloud Server for Performance. Here is Why. zlib.output_compression can be set from php.ini file; indeed we were talking about Optimize php ini for Rackspace Cloud Server (PVHVM), the readers already know about the way to find this php.ini file.

But before we begin, let us joke a bit with spam master Matt Cutts’ blog’s page loading speed. His website loads at amazing speed, if you are this website or your website runs faster, you are wrong. Without any Ads, images (he knows the quality of Google’s CDN, pun intended for CDN part), you can see the test results here :

 

Vim
1
http://www.webpagetest.org/result/140502_PE_B40/

 

High speed, right? If you do not want such 52/100 score; you need to have curiousness about these things we are talking about. By the way, do not think that his score is great on even Google Page Speed test. Actually Google will go away with time, people are becoming aware of PRISM, Heartbleed; the relationships – AOL possibly was better. Content will remain.

Advertisement

---

 

zlib.output_compression Should Be Off on Cloud Server

 

It is important to understand that – we are not optimizing websites for Google, we are doing it for usability. You can test – Facebook has best of the best server configuration. zlib.output_compression enables gzip. Technically we should set to on, right? Here is official documentation on zlib.output_compression :

 

Vim
1
http://www.php.net/manual/en/ref.zlib.php

 

But in most CMS including WordPress; usually cache modules  or cache plugins like W3 Total Cache will throw a message :

 

Either the PHP configuration, web server configuration or a script in the WordPress installation has zlib.output_compression enabled.
Please locate and disable this setting to ensure proper HTTP compression behavior.

 

Like this :

zlib.output_compression Should Be Off on Cloud Server for Performance

zlib.output_compression Should Be Off on Cloud Server as we use Apache’s mod_deflate. This PHP’s zlib.output_compression is based on Apache’s mod_deflate. As the Plugins generates static HTML files; mod_deflate effectively compress them. PHP’s zlib output_compression will only work files passed through the PHP handler (i.e. .php files), but Apache’s mod_deflate can work on any files (e.g. static CSS or JS). Here is mod_deflate :

 

Vim
1
http://httpd.apache.org/docs/2.4/mod/mod_deflate.html

 

In case of our multiple server setup, it is quite dangerous keep it on. By default it is set to Off. Everytime PHP prints something, without OB it would be sent straight to apache and from apache to the browser. Instead, with OB, the output stops at Apache and waits until the data is flushed (to the browser) or until the script ends and the data is flushed automatically. This saves quite a lot of time and resources when generating a page by buffering the Apache to Web Browser stage of the process.

Why would you make PHP compress it in case of Single Server? What you “should” do to drastically free Apache to process PHP is to install NGINX as a front to the public. It’s VERY easy to setup as a reverse proxy and you can even install it on the SAME server as php and apache.

So set NGINX on port 80, put Apache on say port 8080 (and only allow nginx to connect, but don’t worry if you leave it public for a little time as it was already public and great for debugging to bypass nginx so no security issues should rise – but we recommend you not to leave it public for to long). Then make nginx reverse proxy to Apache, cache all static files which offloads that from apache (because nginx serves them instead) meaning apache can do more php requests, and also get nginx to perform OUTPUT COMPRESSION) freeing up apache and php to do even more requests. As an added benefit, nginx can also serve static files much faster than Apache and Nginx also uses much less ram and can handle much more connections.

Remember to KEEP output buffering ON however for PHP to Apache but turn zlib.output_compression OFF on PHP and enable it instead on nginx.

 

Turn Off zlib.output_compression

 

Like we have said in the guide Optimize php ini for Rackspace Cloud Server (PVHVM); first SSH to your server and then fun this command :

Vim
1
php -i | grep 'php.ini'

Then edit the file :

Vim
1
2
nano /path/to/php/cli/php.ini
# change /path/to/php/cli/

You should use ^ + W to find zlib.output and set it too Off.

Tagged With zlib output_compression , zlib output compression , zlib output_compression is turned off Please turn it on for faster server/browser communication , either the php configuration web server configuration or a script in the wordpress installation has zlib output_compression enabled , enable zlip output_compression in my host , php zlib output compression mod_deflate , should i enable zlib output compression , zlib output_compression by script , zlib output_compression wordpress

This Article Has Been Shared 658 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to zlib.output_compression Should Be Off on Cloud Server for Performance

  • EyeOS Open Source Development : We Will Fund Development

    EyeOS Open Source Development needs WordPress like community. EyeOS faked to be Open Source as Cloud OS, got thousands of backlinks and finally shown the color.

  • Installing WordPress on openSUSE Rackspace Cloud Server

    Installing WordPress on openSUSE Rackspace Cloud Server is fully different from the command line arguments and with proper settings openSUSE is most secure OS.

  • Ushahidi information Collection Visualization App on Rackspace Cloud

    Ushahidi is an Open Source excellent information Collection Visualization App, this is a guide to install on Rackspace Cloud Sites in easy steps.

  • Installing WordPress on Rackspace Cloud Sites : Tips with Video

    Installing WordPress on Rackspace Cloud Sites Guide this time reloaded with easy tips to install within 15 minutes and a guided video also included as a part.

  • PaaS and Java EE : An Overview of Different Cloud Solutions

    PaaS and Java EE has a kind of love hate relationship – the easy way to deploy PaaS for various Cloud Solution is using Java EE applications over IaaS.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023
  • Difference Between Panel Light, COB Light, Track Light January 21, 2023

About This Article

Cite this article as: Abhishek Ghosh, "zlib.output_compression Should Be Off on Cloud Server for Performance," in The Customize Windows, May 2, 2014, January 29, 2023, https://thecustomizewindows.com/2014/05/zlib-output_compression-cloud-server-performance/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT