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
1. Log into WHM.
2. Navigate to MultiPHP Manager.
3. In the Set PHP Version per Domain section, search for your domain.
4. Click Edit PHP-FPM to the far right of your domain.
5a. 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.
5b. To enable a PHP function, click Edit function list and remove the desired function from the list.
6. Click Save Configuration.