Hello,
I am looking to make some changes to the master php.ini to disable the following functions by default, however am needing advice on how to set this up so that users can override them on an as-needed basis. Wether it's me making the changes as needed to a root-owned php.ini file in each user's directory, and overriding the following parameters less the one function which is needed, or wether it is allowing .htaccess overrides. I would appreciate some advice as in researching this general topic out on google I am getting mixed advice through found results.
Functions I want to disable, and only enable on an as needed basis:
disable_functions =
"passthru,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source,dl,pclose,proc_nice,proc_terminate,proc_get_status,proc_close,leak,apache_child_terminate,shell-exec,exec,crack_check,crack_closedict,crack_getlastmessage,crack_opendict,psockopen,php_u,symlink,ini_restore,posix_getpwuid,system,pfsockopen,readfile,escapeshellarg,escapeshellcmd,proc_close,ini_alter,parse_ini_file,pcntl_exec,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,copy,curl_exec,tempnam,shell_exec"
I am looking to make some changes to the master php.ini to disable the following functions by default, however am needing advice on how to set this up so that users can override them on an as-needed basis. Wether it's me making the changes as needed to a root-owned php.ini file in each user's directory, and overriding the following parameters less the one function which is needed, or wether it is allowing .htaccess overrides. I would appreciate some advice as in researching this general topic out on google I am getting mixed advice through found results.
Functions I want to disable, and only enable on an as needed basis:
disable_functions =
"passthru,system,proc_open,popen,curl_multi_exec,parse_ini_file,show_source,dl,pclose,proc_nice,proc_terminate,proc_get_status,proc_close,leak,apache_child_terminate,shell-exec,exec,crack_check,crack_closedict,crack_getlastmessage,crack_opendict,psockopen,php_u,symlink,ini_restore,posix_getpwuid,system,pfsockopen,readfile,escapeshellarg,escapeshellcmd,proc_close,ini_alter,parse_ini_file,pcntl_exec,posix_kill,posix_mkfifo,posix_setpgid,posix_setsid,posix_setuid,copy,curl_exec,tempnam,shell_exec"