Certain values in cPanel MultiPHP INI Editor, requiring workaround for PHP-FPM

zebw

Registered
Dec 30, 2018
1
0
1
Virginia, USA
cPanel Access Level
Root Administrator
Making most php configuration changes for websites using PHP-FPM, right now is a big pain, as I see others have experienced in posts like:
MultiPHP INI Editor Values Not Saved for PHP-FPM Sites

I do sysadmin/support for a cPanel server. By my client, I was given something like this:

Code:
opcache.revalidate_freq=60
opcache.validate_timestamps=1
opcache.max_accelerated_files=5000
opcache.memory_consumption=192
opcache.interned_strings_buffer=16
opcache.fast_shutdown=1
But as per cPanel docs, I had to be the one to turn that all into this:

Code:
php_value_opcache.fast_shutdown:
  name: php_value[opcache.fast_shutdown]
  value: 1
php_value_opcache.interned_strings_buffer:
  name: php_value[opcache.interned_strings_buffer]
  value: 16
php_value_opcache.max_accelerated_files:
  name: php_value[opcache.max_accelerated_files]
  value: 5000
php_value_opcache.memory_consumption:
  name: php_value[opcache.memory_consumption]
  value: 192
php_value_opcache.revalidate_freq:
  name: php_value[opcache.revalidate_freq]
  value: 60
php_value_opcache.validate_timestamps:
  name: php_value[opcache.validate_timestamps]
  value: 1
Since I couldn't do anything to /opt/cpanel/ea-php??/root/etc/php.d/10-opcache.ini nor /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml because my client requested each subdomain to have their owns settings, I was only left with the manual yaml userdata editing for each vhost option. This is obviously very tedious.

Also, because SuPHP and CGI break opcache, and switching to DSO is basically server wide and tedious, I don't see a viable alternative in that regard.

Is there any work being done to make sure that whatever a user does in cPanel MultiPHP INI Editor, within reason of security, is actually applied, so root administrators don't need to do these tedious overrides manually? Or is there an easier workaround?

Thanks.