[英]Openshift: Php 5.4 disable zlib compression
I am currently develop an app in Openshift and currently I need to disable the pages zlib encoding, for get my app working proper. 我目前正在Openshift中开发一个应用程序,当前需要禁用页面zlib编码,以使我的应用程序正常工作。
I tried to edit the file httpd.conf via ssh, but I found a no permission error message for this. 我试图通过ssh编辑文件httpd.conf,但发现此消息没有权限错误消息。
Is there any way to do this? 有什么办法吗?
Yeah, most files under ~/php
in your Openshift gear will be locked or overridden on app restart. 是的,在应用重启时,Openshift档中~/php
下的大多数文件将被锁定或覆盖。
Looking at ~/php/configuration/etc/php.ini
in a PHP 5.4 OpenShift app I see that zlib compression is disabled at the PHP level: 在PHP 5.4 OpenShift应用程序中查看~/php/configuration/etc/php.ini
,我看到在PHP级别禁用了zlib压缩:
; Transparent output compression using the zlib library
; Valid values for this option are 'off', 'on', or a specific buffer size
; to be used for compression (default is 4KB)
; Note: Resulting chunk size may vary due to nature of compression. PHP
; outputs chunks that are few hundreds bytes each as a result of
; compression. If you prefer a larger chunk size for better
; performance, enable output_buffering in addition.
; Note: You need to use zlib.output_handler instead of the standard
; output_handler, or otherwise the output will be corrupted.
; http://www.php.net/manual/en/zlib.configuration.php#ini.zlib.output-compression
zlib.output_compression = Off
So then I presume Apache is compressing the output. 因此,我认为Apache正在压缩输出。 See here: Disabling Apache compression 参见此处: 禁用Apache压缩
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.