Skip to main content

exec() disabled when PHP-FPM enabled

Comments

4 comments

  • imgdat
    Oops I should have looked at more posts about PHP-FPM. I edited /opt/cpanel/ea-php70/root/etc/php-fpm.d/blah.domain.tld.conf to have php_admin_value[disable_functions] = passthru,shell_exec,system and restarted PHP-FPM with /etc/init.d/ea-php70-php-fpm restart Now exec() works. However if PHP-FPM is turned off and on again it overwrites the conf file. Is there a way to make this setting persistent?
    0
  • cPanelMichael
    Hello, I'm happy to see you were able to address the issue. Disabling PHP-FPM and then enabling it again will reset any custom PHP-FPM configuration values for the specific domain name. Feel free to open a feature request if you'd like an additional option to preserve those settings: Submit A Feature Request Thanks!
    0
  • i-Strategi
    imgdat's solution worked fine, but for a single domain. How do i make this setting global? So that i dont have to go into each domain on my webserver, and remove "exec" from php_admin_value[disable_functions] ?
    0
  • cPanelMichael
    imgdat's solution worked fine, but for a single domain. How do i make this setting global? So that i dont have to go into each domain on my webserver, and remove "exec" from php_admin_value[disable_functions] ?

    Hello, This is discussed on the following thread: Enabling PHP-FPM forces disable_functions Thanks!
    0

Please sign in to leave a comment.