You can enable disable_functions settings in the Cloudlinux’s PHP selector by modifying the following file.
1. Try adding the following lines in theĀ /etc/cl.selector/php.conf
:
Directive = disable_functions
Type = value
Comment = This directive allows you to disable certain functions for security reasons. It takes on a comma-delimited list of function names. disable_functions is not affected by Safe Mode.
2. Then run:
cagefsctl --force-update
And you know what’s the best part? This won’t be a security issue for the server. The following is the official response from Cloudlinux Support
In this case, this feature will be available to other users on your server. However, the ability to disable features is not critical and will not affect the security of your server. In addition, disabling features will work on a per-user basis, not globally.