Author Topic: Disable dangerous PHP functions  (Read 2512 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
Disable dangerous PHP functions
« on: March 19, 2020, 01:55:30 PM »
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 #1 on: March 19, 2020, 04:01:32 PM »
add it in php.ini or if using fpm then add it to .user.ini