Author Topic: Disable dangerous PHP functions :/  (Read 1084 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Disable dangerous PHP functions :/
« 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,


Offline
*
Re: Disable dangerous PHP functions :/
« Reply #2 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

Offline
*****
Re: Disable dangerous PHP functions :/
« Reply #3 on: August 12, 2020, 08:31:28 AM »
You can disable functions in /opt/alt/php-fpm%VERSION%/usr/php/php.ini
You can ask me to solve any problem with your server for some money in pm  ;)
Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor
Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp

Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services