Michaelit

Well-Known Member
Aug 5, 2015
86
9
58
Greece
cPanel Access Level
Root Administrator
Hello,
i would like to change the default values for all PHP-FPM users on the system and i follow the next steps:

1. touch /var/cpanel/ApachePHPFPM/system_pool_defaults.yaml
2. vi
php_admin_flag_allow_url_fopen: off
php_admin_value_short_open_tag: off
php_value_error_reporting: E_ALL & ~E_STRICT & ~E_WARNING & ~E_NOTICE
php_admin_value_disable_functions: exec,passthru,eval,shell_exec,system,proc_open,popen,curl_multi_exec,ftp_exec,apache_setenv,set_time_limit,posix_getpwuid,posix_getgrgid,posix_kill,disk_free_space,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority
3. Save - exit and rebuild:
/usr/local/cpanel/scripts/php_fpm_config --rebuild

I restart the service PHP FPM for apache... and nothing changed.

- I have changed these PHP values from MultiPHP ini editor as well without any success.

Please advice me what i have missed.
cPanel v. 70.

P.S: I haven't edited a user's pool in WHM's MultiPHP Manager interface (WHM >> Home >> Software >> MultiPHP Manager).
Thank you in advance
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,301
363
Houston

Michaelit

Well-Known Member
Aug 5, 2015
86
9
58
Greece
cPanel Access Level
Root Administrator
Thank you @cPanelLauren,
The issue has finally been fixed. I had followed all the documentations you've quoted me. What happened?
It took 13 minutes to create the corresponding .cache file so i had to wait for a while! Now everything has been set as i wished!

Thank you!