exec() disabled when PHP-FPM enabled
Turning on PHP-FPM in the MultiPHP Manager for a domain will disable exec() and possibly other functions. In the INI settings there is only [PHP]disable_functions =[/PHP]
If PHP-FPM is turned off then exec() will work again. How can exec() be enabled with PHP-FPM?
-
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 -
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 -
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 -
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.
Comments
4 comments