[BlueOnyx:21455] Re: 5209R additional php flag
Dirk Estenfeld
dirk.estenfeld at blackpoint.de
Mon Oct 2 01:44:31 -05 2017
Hello Michael,
thank you for the explanations.
But
php_flag zlib.output_compression On
seems not to be the same like
php_admin_flag zlib.output_compression On
If I use
php_admin_flag zlib.output_compression On
https://gtmetrix.com/ is showing for the site "Enable gzip compression is on".
If I use php_flag zlib.output_compression On
gtmetrix.com is showing "Enable gzip compression is off".
I manually added "hp_admin_flag zlib.output_compression On" to the apache and fpm config again and now https://gtmetrix.com/ is showing Enable gzip compression is on. Again.
So can you please add the possibility to add php_admin_flag zlib.output_compression On via the *.ini file in the php.d directory?
No, there is no Roundcube installed at the server.
Best regards,
Dirk
---
blackpoint GmbH - Friedberger Straße 106b - 61118 Bad Vilbel
-----Ursprüngliche Nachricht-----
Von: Blueonyx [mailto:blueonyx-bounces at mail.blueonyx.it] Im Auftrag von Michael Stauber
Gesendet: Freitag, 29. September 2017 18:54
An: blueonyx at mail.blueonyx.it
Betreff: [BlueOnyx:21445] Re: 5209R additional php flag
Hi Dirk,
> I added in the php.d directory for a site a zlib.ini with the following content:
>
> php_admin_flag zlib.output_compression On
>
> But it is not included in the /etc/httpd/conf/vhosts/site<nummer> or the /etc/php-fpm-xx.d/site<nummer>.conf file.
>
> Where is my mistake?
It's actually ...
php_flag zlib.output_compression On
... and not "php_admin_flag ..." in this case.
Once you placed a custom *.ini file into the php.d directory of a Vsite,
you need to trigger the rebuild of the configs of that Vsite. The
easiest way is via the GUI. Go to "Services" / "Web" and just hit save
without changing anything.
However: If you have multiple *.ini files in php.d which have
conflicting settings, then the first flag of a certain type that got
parsed from a file in php.d will win.
Example: You have RoundCube installed and that already created
php.d/roundcube.ini, which (among other things) has ...
php_flag zlib.output_compression Off
... in it. You manually create zlib.ini, which has ...
php_flag zlib.output_compression On
... in it. In that case roundcube.ini will win and will set it to "Off",
as it gets processed first.
If you want your file to be processed first, change its name to
something that bumps its sort order. Like '0_zlib.ini'.
--
With best regards
Michael Stauber
_______________________________________________
Blueonyx mailing list
Blueonyx at mail.blueonyx.it
http://mail.blueonyx.it/mailman/listinfo/blueonyx
More information about the Blueonyx
mailing list