PHP’s disable_functions setting prevents selected built-in functions from being called in a PHP environment. This guide explains how an administrator can edit that setting for a PHP version through WHM.
Before you start
Identify the PHP version and handler used by the affected applications. Disabling functions can break features such as image processing, scheduled tasks or deployment tools, so test the proposed restriction and keep the original setting for rollback.
disable_functions is not a complete security boundary and does not prevent all malicious PHP activity. PHP’s documentation warns against relying on it as sufficient protection for shared hosting.
Edit the setting
- Log in to WHM with server administration permissions.
- Open Software > MultiPHP INI Editor and select Editor Mode.
- Choose the required PHP version.
- Find
disable_functionsand review the existing comma-separated list. - Add only the approved function names, preserving restrictions already required by the server. Avoid duplicate directives.
- Click Save.
- Reload the affected PHP handler if your server’s configuration requires it, then verify the effective setting in that application’s PHP environment.
- Test the applications that use this PHP version. Restore the original list if required functionality fails.

Repeat only for other PHP versions that need the same policy. A CLI configuration check alone does not prove that a website’s PHP-FPM or other handler has loaded the change.