[BlueOnyx:21445] Re: 5209R additional php flag

Michael Stauber mstauber at blueonyx.it
Fri Sep 29 11:54:08 -05 2017


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



More information about the Blueonyx mailing list