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.

Edit the setting

  1. Log in to WHM with server administration permissions.
  2. Open Software > MultiPHP INI Editor and select Editor Mode.
  3. Choose the required PHP version.
  4. Find disable_functions and review the existing comma-separated list.
  5. Add only the approved function names, preserving restrictions already required by the server. Avoid duplicate directives.
  6. Click Save.
  7. Reload the affected PHP handler if your server’s configuration requires it, then verify the effective setting in that application’s PHP environment.
  8. Test the applications that use this PHP version. Restore the original list if required functionality fails.

disable functions

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.