Control Web Panel

WebPanel => CentOS 6 Problems => Topic started by: Jasxex on June 20, 2020, 12:24:35 AM

Title: Disable dangerous PHP functions :/
Post by: Jasxex on June 20, 2020, 12:24:35 AM
I also can’t figure out how to disable dangerous PHP functions. I have tried like this in my PHP.ini

disable_functions = "exec, system"

But that didn’t work so now I trying this below.

# disable functions
disable_functions=exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec,
Title: Re: Disable dangerous PHP functions :/
Post by: Sandeep on June 20, 2020, 04:54:40 AM
http://wiki.centos-webpanel.com/how-to-disable-dangerous-php-functions
Title: Re: Disable dangerous PHP functions :/
Post by: ekgrad on June 21, 2020, 04:45:40 AM
Can you guide me how to do this per user. PHP-FPM does not seem to honor .user.ini disable_functions directive
Title: Re: Disable dangerous PHP functions :/
Post by: Igor S. on August 12, 2020, 08:31:28 AM
You can disable functions in /opt/alt/php-fpm%VERSION%/usr/php/php.ini