Home > Backend Development > PHP Tutorial > PHP security configuration closes PHP execution system command function_PHP tutorial

PHP security configuration closes PHP execution system command function_PHP tutorial

WBOY
Release: 2016-07-13 17:11:12
Original
1082 people have browsed it

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

Remove the comment before disable_functions and edit the content as follows
The code is as follows
 代码如下 复制代码

vim /etc/php.ini

Copy code

 代码如下 复制代码

disable_functions = exec,shell_exec,system,passthru,popen

vim /etc/php.ini


The code is as follows Copy code

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.html
www.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...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template