enable some function in disable_functions for special patch

parsibox

Verified User
Joined
Apr 18, 2013
Messages
50
hi
i want enable some funciton that is in disable_functions in main php.ini file for [PATH=/var/www/html/davari]
i copy this code in file /usr/local/php70/lib/php.conf.d/50-webapps.ini
Code:
[PATH=/var/www/html/davari]
session.save_path=/var/www/tmp
upload_tmp_dir=/var/www/tmp
disable_functions=exec
and restart php-fpm but this not work
in Local Value this changed but not work
i remove ; in ;php_admin_value[open_basedir] = /tmp:/var/tmp:/var/www/html:/usr/local/php70/lib/php
but not work
i add /var/www/html/davari no open_basedir but not work

i use php7 , php-fpm , Apache/2.4.25 (Unix) , directadmin 1.51.3
what can i do?
 
You cannot overwrite disable_functions. I'd suggest using suhosin.executor.func.blacklist from suhosin PHP extension for that.
 
You cannot overwrite disable_functions. I'd suggest using suhosin.executor.func.blacklist from suhosin PHP extension for that.

i found this ini file in webapp ==> in webapp directadmin overwrite disable_functions ==> this not work for webapp ??
 
Back
Top