Skip to main content

Disabling PHP functions on an Account

Comments

3 comments

  • cPanelLauren
    The suggested method of modifying this would be to go to cPanel>>MultiPHP INI editor ->> Editor Mode -> Select Location (site) disable_functions = exec, system, passthru, pcntl_exec, popen, proc_open, shell_exec
    This would need to be done for each site and should be possible on an account level basis. You can also check out the documentation here: MultiPHP INI Editor for cPanel - Version 82 Documentation - cPanel Documentation
    0
  • SactoBob
    The suggested method of modifying this would be to go to cPanel>>MultiPHP INI editor ->> Editor Mode -> Select Location (site) disable_functions = exec, system, passthru, pcntl_exec, popen, proc_open, shell_exec
    This would need to be done for each site and should be possible on an account level basis. You can also check out the documentation here:
    0
  • cPanelLauren
    Are you sure this is information is correct? I've been trying this to remove some functions and it appears disable_functions is not recognized in the user's php.ini. The link you provide also does not mention disable_functions. I want to remove some internal functions for a specific account/domain, but can't seem to do so via MultiPHP INI editor. Please advise. Thank you. (FYI, I'm using PHP-FPM)

    I'm positive this information is correct, in the event you're not running PHP-FPM. For systems using PHP-FPM you'd need to make these modifications in accordance with the documentation here: How to Manage Your php.ini Directives with PHP-FPM - cPanel Knowledge Base - cPanel Documentation
    0

Please sign in to leave a comment.