Php-fpm php.ini

HestiaCP has a php configuration that applies to all php versions.
What is a correct way to include php modules that are verison specific?

For example ioncube requires this.

zend_extension = /usr/lib/php/2015xxxx/ for 7.0,
zend_extension = /usr/lib/php/2017xxxx/ for 7.2,
zend_extension = /usr/lib/php/2019xxxx/ for 7.4 etc.



Just add it to the php.ini file for each version, you’ll find them in /etc/php/x.x/fpm/php.ini.

I know, but wouldn’t any gui config change overwrite it?

What for gui config change you mean?

php-fpm setings within server - web server.
When you edit config there, it overwrites all:
/etc/php/7.3/fpm/php.ini /etc/php/7.0/fpm/php.ini /etc/php/5.6/fpm/php.ini /etc/php/7.4/fpm/php.ini /etc/php/7.2/fpm/php.ini /etc/php/7.1/fpm/php.ini

some version specific include would be cool.

It does not overwrite, it just loads them - we only have one version of (php) config files.

Oh. :slight_smile: OK!
Jumped to conclusion. Thanx.