setting disable_functions

tveenker

Verified User
Joined
Mar 5, 2023
Messages
22
I need to (unfortunately) enable the php exec function for a particular site. So what I did was I removed exec from disable_functions in /usr/local/php83/lib/php.ini and added php_admin_value[disable_functions] = exec to /usr/local/directadmin/data/users/<name>/php/php-fpm83.conf (via the php-fpm Global |Custom2| input in DA) for all other sites.

The problem is the global setting gets reverted by DA. It's probably trivial but I can't find where to fix it. My question is how can I avoid the global disable_functions setting to be reset, or alternatively how can I provide a custom disable_functions setting that overrules (instead of extending) the global one?

Thanks,
Theo
 
Back
Top