PHP’s four functions exec, shell_exec, system, and passthru can execute system instructions and pose a threat to system security. If they are not used, they can be closed
The code is as follows
代码如下 |
复制代码 |
vim /etc/php.ini
|
|
Copy code
|
代码如下 |
复制代码 |
disable_functions = exec,shell_exec,system,passthru,popen
|
vim /etc/php.ini
|
Remove the comment before disable_functions and edit the content as follows
The code is as follows
|
Copy code
|
disable_functions = exec,shell_exec,system,passthru,popen
Friendly reminder, a friend said that he wants to filter the eval function. In php, this is not a function and cannot be disabled in disable_functions
http://www.bkjia.com/PHPjc/629602.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/629602.htmlTechArticlephp’s four functions exec, shell_exec, system, and passthru can execute system instructions and pose a threat to system security. If If not in use, you can turn it off with the following code: copy the code vim /etc/php...
|