Introduction
In some circumstances, you may need to enable or disable a specific PHP function for one domain. You may follow the procedure below to modify disable_functions in WHM for a domain that is using PHP-FPM.
Procedure
- Log into WHM.
- Navigate to "MultiPHP Manager."
- In the "Set PHP Version" per Domain section, search for your domain.
- Click "Edit PHP-FPM" to the far right of your domain.
-
To disable a PHP function or multiple PHP functions, type in the name of the function (example: "exec" OR "exec,shell_exec,mail") and then click "Add."
- To enable a PHP function, click "Edit function list" and remove the desired function from the list.
- Click "Save Configuration."