Skip to main content

PHP-FPM Issue

Comments

6 comments

  • Marius
    It seems that your forum software use "exec()" function which is disabled by default in PHP-FPM for security reasons. WHM > MultiPHP Manager - check here first your PHP version for your domain!(in PHP-FPM you first should activate PHP version). after Go to WHM > MultiPHP INI Editor > Editor Mode(tab) > Edit the INI settings of a PHP version(here select the php version which you previously activate for your domain in MultiPHP Manager and search for: disable_functions = show_source, system, shell_exec, passthru, exec, phpinfo, popen, proc_open remove: exec > save > restart PHP-FPM service (I recommend restart Apache service too) and check again for your error. Take care with "exec" function enabled(do you trust your users?).
    0
  • cPanelMichael
    Hello, "exec" is added to the disable_functions PHP configuration option by default with PHP-FPM. The following thread is helpful if you'd like to change the default PHP-FPM configuration values: Enabling PHP-FPM forces disable_functions However, generally it's a good idea to leave the exec function disabled for increased security. Thank you.
    0
  • Nirjonadda
    Enabling PHP-FPM forces disable_functions

    Without this then any way can Enabling exec function?
    0
  • cPanelMichael
    Without this then any way can Enabling exec function?

    Could you provide a specific example of what you'd like to do? Thank you.
    0
  • Nirjonadda
    Could you provide a specific example of what you'd like to do? Thank you.

    I want enable "exec()" function.
    0
  • cPanelMichael
    Yes, the only way to modify the default PHP-FPM values for the account is by using the instructions on the linked thread. Thank you.
    0

Please sign in to leave a comment.