Hi.
Nice to be back on the forums. Hopefully everyone hasn't drifted away...
I have a PHP-based site on cpanel31 that would benefit from gzip output support - ie compressed HTML output.
It has a setting to enable it, so I have, but upon testing it appears as if the output is not actually being compressed.
In exploring the server settings to see what might be the issues here, I had a look at phpinfo for cpanel31.
It reports that Zlib support is there, but that zlib output compression is Off:
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
Now, how can I alter this output compression setting, so that my php app can actually do output compression?
AFAIK, I can't edit php.ini to turn this on, but are there other ways to get this support enabled within PHP?
I know I can make a .htaccess change to enable GZIP output compression using Apache's mod_gzip, which (I think) is available on Dathorn Apache, along the lines of:
mod_gzip_on Yes
But it would be nice to let this be enabled within PHP.
Any advice?
samsam
Nice to be back on the forums. Hopefully everyone hasn't drifted away...
I have a PHP-based site on cpanel31 that would benefit from gzip output support - ie compressed HTML output.
It has a setting to enable it, so I have, but upon testing it appears as if the output is not actually being compressed.
In exploring the server settings to see what might be the issues here, I had a look at phpinfo for cpanel31.
It reports that Zlib support is there, but that zlib output compression is Off:
ZLib Support enabled
Compiled Version 1.1.4
Linked Version 1.1.4
Directive Local Value Master Value
zlib.output_compression Off Off
zlib.output_compression_level -1 -1
zlib.output_handler no value no value
Now, how can I alter this output compression setting, so that my php app can actually do output compression?
AFAIK, I can't edit php.ini to turn this on, but are there other ways to get this support enabled within PHP?
I know I can make a .htaccess change to enable GZIP output compression using Apache's mod_gzip, which (I think) is available on Dathorn Apache, along the lines of:
mod_gzip_on Yes
But it would be nice to let this be enabled within PHP.
Any advice?
samsam
Comment