Php-fpm php.ini

Hi
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/ioncube_loader_lin_7.0.so for 7.0,
zend_extension = /usr/lib/php/2017xxxx/ioncube_loader_lin_7.2.so for 7.2,
zend_extension = /usr/lib/php/2019xxxx/ioncube_loader_lin_7.4.so for 7.4 etc.

BR,
Neven

Hi

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.