How to Disable/Enable PHP_Function in cPanel

March 16, 2024 / cPanel & WHM

In this article, we will explain how to Disable/Enable PHP Functions in cPanel.

Follow these steps to Disable/Enable PHP functions in cPanel.

  1. Login to your “cPanel Account”.
    cPanel Account
  2. Search for the “MultiPHP INI Editor” from the “Software” section.
    “MultiPHP INI Editor"
  3. Click on “Editor Mode”.
    configure
  4. Select the “Domain Name”.
    Edit setting
  5. Enter the PHP functions in front of “disable_functions = # # # #” to disable the PHP function.
    For Example: disable_functions = exec, system, passthru, pcntl_exec, popen, proc_open, shell_exec

    disable_functions

  6. Click on the “Save” button.To enable the disabled function, remove the specific PHP function from the “disable_function” list.

In this way, you can enable/disable PHP Functions in cPanel.

Need to update your PHP version in Plesk? Learn how with our comprehensive guide: How to Change PHP Version in Plesk Server.

Spread the love